does jar file loaidng will consume the jvm memory ?
I have to run the cronjobs for some of the java files . so i have writen the .sh file ( linux server)
This is the Script file
Expand|Select|Wrap|Line Numbers
- temp_path=/bin:/usr/sbin:/usr/bin
- export temp_path
- #Setting java commands & classpaths
- javac=/usr/local/jdk1.5.0_03/bin/javac
- java=/usr/local/jdk1.5.0_03/bin/java
- lib=/home/rashmi/tomcat1/lib
- JAVA_OPTS="-Djava.awt.headless=true" ; export JAVA_OPTS
- echo "$JAVA_OPTS"
- cjar=.
- for i in $lib/*.jar
- do
- cjar=$cjar:$i
- done
- cjar=$cjar:/home/rashmi/ValYouAdd/jakarta-tomcat-5.0.28/common/lib/servlet-api.jar
- cjar=$cjar:$lib/../classes
- #echo "CLASSPATH:$cjar"
- #Execute Blocking Check
- $java -classpath $cjar com.cerulean.cronjob.systemtask.Test
Hosting people are telling it is using more memory .
I have witen one Java file where there is one One line of system .out.println .
Even that file is getting killed .
Will the Jar file loading consume the memory
beaucse lib=/home/rashmi/tomcat1/lib will load all the jar files
i tried to give specific jar files insted of loading all the jars but it is not compliing the java file
example lib=/home/rashmi/tomcat1/lib/mail.jar
Please help me on this thanks