Firstly, running out of memory after a predictable period of running (rather
than because of peak loading) suggests a memory leak.  These are possible in
Java if you hold onto object references accidentally once you're done with
them (or libraries you call do so).  If this is the case, adding more JVM
memory won't help you.

You may want to monitor your Java memory usage with the JVM profiler (or an
external tool like jProbe).

Assuming that this isn't the case, then you have the correct command line
parameter - you're setting it to about 120 Mb in your example (which you can
specify as "-Xmx120M" if you prefer).  The default value for this is 64 Mb
on Solaris and WinNT with Sun's JVM.


Eoin.
-----Original Message-----
From: Srinivas Reddy [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 4:39 PM
To: [EMAIL PROTECTED]
Subject: Setting JVM Memory configuration


hi ,
        my tomcat runs out of memory soon after 3-4 hrs of running(depends
on no of users accessing it). As almost 5-10 users are accessing it at a
time. I have 120 JSPs and 180 JAVA classes in defferent packages.
        I increased JVM memory something like this in tomcat.bat file it
served me for next say 3-4 hrs but still it crashes after that.

 %_STARTJAVA% %TOMCAT_OPTS%  -Xmx1200000000  -Dtomcat.home="%TOMCAT_HOME%"
org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9

can anyone help me ?????

thanks in advance.
-srini

 Also what is default memory used by JVM ????



----- Original Message -----
From: "Ogievetsky, Nikita" <[EMAIL PROTECTED]>
To: "Ogievetsky, Nikita" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Monday, July 30, 2001 3:24 PM
Subject: RE: Invalid class file format


> never mind.
> the error disappeared when I switched from tomcat 3.2.3 to 4.0 b6
>
> --Nikita.
>
>
> -----Original Message-----
> From: Ogievetsky, Nikita
> Sent: Monday, July 30, 2001 5:37 PM
> To: '[EMAIL PROTECTED]'
> Subject: Invalid class file format
>
>
> Hello all,
>
> I would greatly appreciate your help.
>
> This is the message I am getting from Tomcat:
>
> org.apache.jasper.JasperException: Unable to compile class for JSPerror:
> Invalid class file format:
>
D:\xml\Rdfquery\lib\rdfquery.jar(org/desire/rudolf/query/DownloadUrls.class)
> , wrong version: 46, expected 45
>
>
> I tried to compile
> org/desire/rudolf/query/DownloadUrls.class
> with JDK 1.3 and JDK 1.2.2, same error message.
>
> I would greatly appreciate any hints and help,
>
> thanks,
>
> Nikita.
>
>
>
> **** Important Notice to Recipients ****
> It is important that you do not use e-mail to request, authorize or effect
> the purchase or sale of any security or commodity, to send fund transfer
> instructions, or to effect any other transactions.  Any such request,
> orders, or instructions that you send will not be accepted and will not be
> processed by Morgan Stanley.
> ****************************************
>

Reply via email to