Problem with the JRockit

2006-06-02 Thread Benjamin Chu
I hope to run the tomcat 5.0 with JRockit 5.0 R26.3.on a linux machine
and installed JRockit in the root directory
(/root/jrockit-R26-3.0-jdk1.5.0_06)
The following is the environment variables which I set:**


export JAVA_HOME=/root/jrockit-R26-3.0-jdk1.5.0_06
export JAVA_HOME
PATH=$JAVA_HOME/bin:$CATALINA_HOME/bin:$PATH
export PATH
export
CLASSPATH=/root/jrockit-R26-3.0-jdk1.5.0_06/lib/tools.jar:/root/jrockit-R26-3.0-jdk1.5.0_06/jre/lib/rt.jar:./
export CLASSPATH=$CLASSPATH:/var/tomcat/common/lib/servlet-api.jar
export
CLASSPATH=$CLASSPATH:/var/tomcat/common/lib/mysql-connector-java-3.1.12-bin.jar
export CLASSPATH=$CLASSPATH:/root
export CATALINA_HOME=/var/tomcat
export CATALINA_HOME


However, when I start the tomcat (./startup.sh), I received the
following message:

The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE

I double checked the environment variables which I set and there is no
typo. The tomcat runs very well if I use Sun J2EESDK .
Is there something wrong with the configuration? Thank you very much!







Re: When does the MarkSweepCompact Garbage Collector perform GC?

2006-05-30 Thread Benjamin Chu
Thanks for the reply! Does this kind of the GC only run when the memory 
usage almost reaches the limit which we allocate (for example, by default, 
it is 64 MB)? Sorry that I am not familiar with the GC.

I just know that the JVM would do it for us by itself. Thank you very much!

- Original Message - 
From: Richard Mixon [EMAIL PROTECTED]

To: 'Tomcat Users List' users@tomcat.apache.org
Sent: Tuesday, May 30, 2006 1:03 AM
Subject: RE: When does the MarkSweepCompact Garbage Collector perform GC?



What makes you think the GC should run? Are you out of memory? The GC will
not run in many situations unless it has a need to.

HTH - Richard

-Original Message-
From: Benjamin Chu [mailto:[EMAIL PROTECTED]
Sent: Monday, May 29, 2006 8:25 PM
To: Tomcat Users List
Subject: When does the MarkSweepCompact Garbage Collector perform GC?

Hello! Now I am using the jconsole to monitor the heap memory usage of the
tomcat 5.5. I've constructed a testbed to test the performance of the
applications running on the tomcat. However, the jconsole shows that the
MarkSweepCompact Garbage Collector never does its job. The only two ways
to make this garbage collector to perform GC are:

1 I push the button perform GC shown on the Memory tab of the 
jconsole

2 I insert the code System.gc() into the servlets.

I think both of these two ways are not good, and this garbage collector
should perform GC automatically (in my opinion). I just wonder when or 
under
which conditions the MarkSweepCompact Garbage Collector would perform 
GC.

Or actually there is something wrong with my configuration so it doesn't
perform GC?
Thank you very much!



-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



When does the MarkSweepCompact Garbage Collector perform GC?

2006-05-29 Thread Benjamin Chu
 Hello! Now I am using the jconsole to monitor the heap memory usage of
the tomcat 5.5. I've constructed a testbed to test the performance of
the applications running on the tomcat. However, the jconsole shows that
the MarkSweepCompact Garbage Collector never does its job. The only
two ways to make this garbage collector to perform GC are:

1 I push the button perform GC shown on the Memory tab of the jconsole
2 I insert the code System.gc() into the servlets.

I think both of these two ways are not good, and this garbage collector
should perform GC automatically (in my opinion). I just wonder when or
under which conditions the MarkSweepCompact Garbage Collector would
perform GC. Or actually there is something wrong with my configuration
so it doesn't perform GC?
Thank you very much!



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]