title: Maven process killed after 5 minutes
body: <p>I have a maven project for which I needed to executed (using maven exec plugin) every day along with some simple operation in database. So I wrote an script for this process and wrote a cron job for this.</p>
  
  <pre><code>LAST_PAGE=$(mysql -hlocalhost -uuser -ppassword -DDB -e 'SELECT * FROM SOME_TABLE LIMIT 1\G' | grep 'COLUMN_1')
  
  CURRENT_PAGE=$((30 + $LAST_PAGE))
  
  if [[ $CURRENT_PAGE -ge 270 ]]; then
          exit
  fi
  
  cd ~/workspace/datasaver/
  mvn exec:java -Dexec.mainClass="com.datasaver.app.CollectionApp" -Dexec.cleanupDaemonThreads=false -Dexec.args="$LAST_PAGE" &amp;
  
  
  mysql -hlocalhost -uuser -ppassword -DDB -e "INSERT INTO SOME_TABLE(COLUMN_1) VALUES($CURRENT_PAGE)"
  </code></pre>
  
  <p>Maven target is expected to take more than 20 minutes, so I have added <code>&amp;</code> to send it into background. I have edited <code>crontab</code> and have added
  <code>0 0 * * * ~/runapp.sh</code> where <code>runapp.sh</code> is my bash file.</p>
  
  <p>Now the problem is that my maven is terminated (probably killed) after 4 minutes every time. Cron logs show nothing at all regarding.
  Any help appreciated.</p>
  
  <p>I have redirected all maven and my own application logs to a log file <code>Application.log</code> and the last log I can see there is</p>
  
  <pre><code>00:04:55 [ERROR] [com.service.FollowService] - Error: no specified property identifier - Error Code: 5
  </code></pre>