1 year ago
#379312
Anuja
Why the java sessions are not ending once the cronjob has been executed in AIX OS
I have set a crontab for execute a java service in every 8 hours in AIX(7.1) operating system. Once the crontab has done the job, the JAVA service should be end. This cronjob is working properly. But java service has not been closing its session at the end. Also this java service takes 3-4 hours to process the files.
Java sessions are accumulating day by day and eventually it leads to idle the application server.
Java Version 1.8
AIX 7.1
Crontab entry:
00 8 * * * cd /ibl/qnb/uat/app/adm/ADM_AUTOMATE_SERV && ./RUN.sh > /ibl/qnb/uat/logs/adm/ADM_AUTOMATE_SERV/run.log
If I execute the above statement manually, cronjob runs properly and closing the session at the end.
RUN.sh file:
/usr/java8_64/bin/java -Xmx1024m -jar ADM_AUTOMATE_SERV.jar
Below are the java sessions still running in the application server. Please have a look and advise what I'm going wrong?
Highly appreciate your time and efforts for this matter.
java
linux
bash
cron
aix
0 Answers
Your Answer