tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pradeep Chauhan" <pradeep.chau...@indussoft.com>
Subject RE: Win2kSP4, Apache-2.0.49 + Tomcat-5.0.27 + mod_jk2-2.0.43 - Memory Reference Error
Date Mon, 26 Jul 2004 14:55:09 GMT
Hi ,

May be it will refer the catilina but it will take Registry setting as final
one ,
If u want to make a try then Write a few line code in which print the Jdk
heap size and go with both solution one by one.
You will get the result.

With Regards,
Pradeep Chauhan


-----Original Message-----
From: Tonte Pouncil [mailto:TonteP@imc2.com]
Sent: 26.07.2004 20:09
To: Tomcat Users List
Subject: RE: Win2kSP4, Apache-2.0.49 + Tomcat-5.0.27 + mod_jk2-2.0.43 -
Memory Reference Error


Regardless if you are starting it as a service or at the command prompt,
Tomcat will still use invoke Catalina.bat as part of its startup process.
So if you did what I suggest last week then you have already increased your
jvm memory heap.  What did you actually increase your memory heap to.  Maybe
you need to increase it more.   Also if you are doing JDBC or Threading
and/or connection pooling, you may need to make sure that you are closing
your resources before return the connection to the connection pool.

Again the command below will increase your jvm memory heap regardless if you
have tomcat running as an instance or not.  So if this didn't work for I
would suggest increasing it some more or check your resource you are using.
i.e(threads, jdbc resources, connections, etc).

open catalina.bat or the equivalent file.
set JAVA_OPTS to the desired value.
set JAVA_OPTS=-Xms128 -Xmx256

tp

-----Original Message-----
From: Noah [mailto:takezo@gmail.com]
Sent: Monday, July 26, 2004 8:59 AM
To: tomcat-user@jakarta.apache.org
Subject: RE: Win2kSP4, Apache-2.0.49 + Tomcat-5.0.27 + mod_jk2-2.0.43 -
Memory Reference Error


Thank you, I tried increasing the memory before but was using the wrong
method (trying to increase it as if I were using command line, but it is a
service). I can't restart the server until after 5, so I will post a
followup
late today or tomorrow.

Thanks,
    Noah

Previous Message:
----------------------------------------------------------------------------
--------------------
Hi,

I faced the same issue when concurent user are more.
In this case we need to Increase the JDK heap size.
On windows we can install the Tomcat in 2 ways

1. As a NT service
2. Command prompt

In 1 Case u need to add 2 additional parameters in registry.
"JVM Option Count"=5
"JVM Option Number 3"="-xms512m"
"JVM Option Number 4"="-xmx512m"

The Minimum and Maximum size of HDK heap size  should be 1/3rd of Total RAM,
as these OS need big memory for their own purpose.

In 2nd Case Increase the JDk size with editing JAVA_OPTS variable in
Catilina file.

I hope your problem will get solved.

With regards,
Pradeep Chauhan
----------------------------------------------------------------------------
--------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message