RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overn ight

2004-01-08 Thread Edson Alves Pereira
In my opnion, is better instead of increasing memory of tomcat JVM
try to profile your application. I´m sure if tomcat complain about memory,
your servlets have something wrong.

 --
 De:   Francois JEANMOUGIN[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 8 de janeiro de 2004 7:31
 Para: Tomcat Users List
 Assunto:  RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory
 overnight
 
 
 
  -Original Message-
  The other day Tomcat threw an OutOfMemoryException. This is our
  development version of Tomcat. Looking at the Windows processes revealed
  Tomcat at 158MB.
 
 Let me do some divination. You are using a SUN Jvm, with no Xms nor Xmx
 parameter. So, the memory allocated to your applications is 64MB
 (default). 158 is a good value reflecting the size of the VM plus the size
 allocated to your applications.
 
 If your application needs more memory, try to path -Xmx=128m -Xms=128m to
 your startup scripts.
 
 Hope this helps,
 
 François (Oraculum).
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overn ight

2004-01-08 Thread Edson Alves Pereira
JProfiler is the best for this job, there are examples to show you
how bind JProfiler to tomcat ( www.jprofiler.com ), its pretty easy to
handle this tool.

 --
 De:   Allistair Crossley[SMTP:[EMAIL PROTECTED]
 Responder:Tomcat Users List
 Enviada:  quinta-feira, 8 de janeiro de 2004 8:58
 Para: Tomcat Users List
 Assunto:  RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory
 overnight
 
 Yes I would like to profile my applicationbut do you have any tips on
 how to do this or where to start?
 
 Thanks
 
 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
 Sent: 08 January 2004 12:49
 To: 'Tomcat Users List'
 Subject: RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory
 overnight
 
 
   In my opnion, is better instead of increasing memory of tomcat JVM
 try to profile your application. I´m sure if tomcat complain about memory,
 your servlets have something wrong.
 
  --
  De: Francois
 JEANMOUGIN[SMTP:[EMAIL PROTECTED]
  Responder:  Tomcat Users List
  Enviada:quinta-feira, 8 de janeiro de 2004 7:31
  Para:   Tomcat Users List
  Assunto:RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory
  overnight
  
  
  
   -Original Message-
   The other day Tomcat threw an OutOfMemoryException. This is our
   development version of Tomcat. Looking at the Windows processes
 revealed
   Tomcat at 158MB.
  
  Let me do some divination. You are using a SUN Jvm, with no Xms nor Xmx
  parameter. So, the memory allocated to your applications is 64MB
  (default). 158 is a good value reflecting the size of the VM plus the
 size
  allocated to your applications.
  
  If your application needs more memory, try to path -Xmx=128m -Xms=128m
 to
  your startup scripts.
  
  Hope this helps,
  
  François (Oraculum).
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 a href=http://www.qas.com;www.qas.com/a
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 /FONT
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory overn ight

2004-01-08 Thread Oswald Campesato
On Unix you can also use the truss command to attach
to a running process (check Google for examples).  I used
this technique on a web application and discovered that a
file with *static* content was being opened 1,000 times
per hour by the application.  Before I showed up at the
company, everybody was working on NT and basically
hated Unix, so the problem went undiscovered for close
to four years.  AFAIK, most (all?) of the Java-based tools 
would not detect this sort of problem.
 
I don't think truss is available on NT, even with the MKS 
(or equivalent) package.  For people who are on NT and 
are experiencing problems with their Java-based web-
application, I would strongly recommend setting up a Unix
environment to perform truss-based testing (even if you
need to hire a contractor to set up everything). It's really
quite amazing what truss can uncover:)
 
Cordially,
 
Oswald
 


Edson Alves Pereira [EMAIL PROTECTED] wrote:
JProfiler is the best for this job, there are examples to show you
how bind JProfiler to tomcat ( www.jprofiler.com ), its pretty easy to
handle this tool.

 --
 De: Allistair Crossley[SMTP:[EMAIL PROTECTED]
 Responder: Tomcat Users List
 Enviada: quinta-feira, 8 de janeiro de 2004 8:58
 Para: Tomcat Users List
 Assunto: RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory
 overnight
 
 Yes I would like to profile my applicationbut do you have any tips on
 how to do this or where to start?
 
 Thanks
 
 -Original Message-
 From: Edson Alves Pereira [mailto:[EMAIL PROTECTED]
 Sent: 08 January 2004 12:49
 To: 'Tomcat Users List'
 Subject: RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory
 overnight
 
 
 In my opnion, is better instead of increasing memory of tomcat JVM
 try to profile your application. I´m sure if tomcat complain about memory,
 your servlets have something wrong.
 
  --
  De: Francois
 JEANMOUGIN[SMTP:[EMAIL PROTECTED]
  Responder: Tomcat Users List
  Enviada: quinta-feira, 8 de janeiro de 2004 7:31
  Para: Tomcat Users List
  Assunto: RE: Tomcat OutOfMemory at 158MB - Not reclaiming any memory
  overnight
  
  
  
   -Original Message-
   The other day Tomcat threw an OutOfMemoryException. This is our
   development version of Tomcat. Looking at the Windows processes
 revealed
   Tomcat at 158MB.
  
  Let me do some divination. You are using a SUN Jvm, with no Xms nor Xmx
  parameter. So, the memory allocated to your applications is 64MB
  (default). 158 is a good value reflecting the size of the VM plus the
 size
  allocated to your applications.
  
  If your application needs more memory, try to path -Xmx=128m -Xms=128m
 to
  your startup scripts.
  
  Hope this helps,
  
  François (Oraculum).
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
 ---
 QAS Ltd.
 Developers of QuickAddress Software
 www.qas.com
 Registered in England: No 2582055
 Registered in Australia: No 082 851 474
 ---
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes