Re: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Sonja Löhr


Unfortunately, I can't give you an answer -
it my well be that my code IS somehow suboptimal, but if the application
runs, all is well, it is just that reload (I'm not sure about start and
stop now) over the manager app.
To be honest, I always waited for the next tomcat release to magically
make it work, but that wasn't the case ;-(

"normal webapp"? I mean I have rarely such a problem with my struts
busines apps, the memory-critical "unnormal" webapp was kind of AI
program needing really a lot of rules and stuff. 


Am Dienstag, den 20.09.2005, 22:17 +0700 schrieb NoKideen:
> On Tuesday 20 September 2005 21:11, Sonja Löhr wrote:
> > I know this problem very well, since I worked on a very memory-consuming
> > app where I coulnd't even reload twice. It has nothing to do with ant,
> > and i think I also had such a case with tomcat 5.5  (now working on
> > "normal" webapps ;-)
> 
> what you mean by "normal" webapps ? it's a html ?
> 
> > Cautiously, I would never reload via manager (or perhaps once) in
> > production.
> 
> I'd really confuse, what is the real cause ?
> Its the development (frequently use ant/ web manager ) to reload the 
> webapps  ?
> 
> or 
> 
> Garbage collector problem ? every pages of servlet loaded, its use many 
> library, Class file, example my own class :
> 
> public test servlet extends HttpServlet
> .. doGet(...) {
> ...
>   PgInt pg = new PgInt();
> 
> 
>   pg.close();
>   pg = null;
> 
> }
> 
> It that means pg Objects is Destroyed,
> 
> or I must do something else ?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
Sonja Löhr <[EMAIL PROTECTED]>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread NoKideen

On Tuesday 20 September 2005 21:11, Sonja Löhr wrote:
> I know this problem very well, since I worked on a very memory-consuming
> app where I coulnd't even reload twice. It has nothing to do with ant,
> and i think I also had such a case with tomcat 5.5  (now working on
> "normal" webapps ;-)

what you mean by "normal" webapps ? it's a html ?

> Cautiously, I would never reload via manager (or perhaps once) in
> production.

I'd really confuse, what is the real cause ?
Its the development (frequently use ant/ web manager ) to reload the 
webapps  ?

or 

Garbage collector problem ? every pages of servlet loaded, its use many 
library, Class file, example my own class :

public test servlet extends HttpServlet
.. doGet(...) {
...
PgInt pg = new PgInt();


pg.close();
pg = null;

}

It that means pg Objects is Destroyed,

or I must do something else ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Sonja Löhr

I know this problem very well, since I worked on a very memory-consuming
app where I coulnd't even reload twice. It has nothing to do with ant,
and i think I also had such a case with tomcat 5.5  (now working on
"normal" webapps ;-)
Cautiously, I would never reload via manager (or perhaps once) in
production.

sonja

Am Dienstag, den 20.09.2005, 14:56 +0100 schrieb Allistair Crossley:
> You'll almost likely find that the reload via Ant does not free up all 
> resources and so each time you perform a reload you'll be leaking some memory 
> resulting in OOME after a week. 
> 
> 3 things to do;
> 
> Get a profiler to see where you may be losing memory.
> Ensure no resource/references are held onto, dispose references correctly
> Hard restart Tomcat when OOME occur.
> 
> Allistair.
> 
> > -Original Message-
> > From: NoKideen [mailto:[EMAIL PROTECTED]
> > Sent: 20 September 2005 14:55
> > To: tomcat-user@jakarta.apache.org
> > Subject: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04
> > 
> > 
> > Hi all, I'm new in this mailling list
> > 
> > I'm currently end up  ways to solve problem out of memory in tomcat
> > 
> > this is
> > startup script in my Linux Fedora Core 2
> > 
> > CATALINA_OPTS=" -Djava.awt.headless=true -server -Xss128k 
> > -Xincgc -Xms256m 
> > -Xmx256m
> > 
> > CPU is on 1Giga Memory
> > 
> > and the problem out of memory, can't happen in specific 
> > times, can't happen in 
> > specific pages (both servlet and JSP), currently happen in 
> > Random time/pages, 
> > usually 1 Weeks after startup.
> > 
> > Server run 24 Hours/day for development only
> > 
> > 
> > usually I use ant for reload servlet, after I change the java code
> > 
> > #ant reload
> > 
> > build.xml
> > 
> > - cut -
> >  > classname="org.apache.catalina.ant.ReloadTask"/>
> > 
> > 
> > what should I do ?
> > 
> > Thanks in Advance,
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
>  
> ---
> QAS Ltd.
> Registered in England: No 2582055
> Registered in Australia: No 082 851 474
> ---
>   
> Disclaimer:  The information contained within this e-mail is confidential and 
> may be privileged. This email is intended solely for the named recipient 
> only; if you are not authorised you must not disclose, copy, distribute, or 
> retain this message or any part of it. If you have received this message in 
> error please contact the sender at once so that we may take the appropriate 
> action and avoid troubling you further.  Any views expressed in this message 
> are those of the individual sender.  QAS Limited has the right lawfully to 
> record, monitor and inspect messages between its employees and any third 
> party.  Your messages shall be subject to such lawful supervision as QAS 
> Limited deems to be necessary in order to protect its information, its 
> interests and its reputation.  
> 
> Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
> Limited cannot guarantee that attachments are virus free or compatible with 
> your systems and does not accept any liability in respect of viruses or 
> computer problems experienced.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
-- 
Sonja Löhr <[EMAIL PROTECTED]>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Mark
2 notes.  

When using Java 1.5, StringBuilder class is supposed to be better
according to documentation.  Also, what has worked for me, is that if
any of the strings can be generated ahead of time, do so in a static
block and convert the strings to byte[].  This not only eliminates
redundant Strings from being built, but also speeds up the I/O.



On 9/20/05, Peter Crowther <[EMAIL PROTECTED]> wrote:
> > From: NoKideen [mailto:[EMAIL PROTECTED]
> > usually I use String to collect output first and out.print()
> > those String
> > example :
> > String a="";
> > a+="Test 1";
> > a+="Test 2";
> > // very long , and almost 1 page
> >
> > out.println(a);
> >
> > can this cause out of memory problem ?
> 
> It won't help much - you'll build up String objects very quickly.  See
> http://java.sun.com/j2se/1.4.2/docs/api/java/lang/StringBuffer.html for
> a better approach that won't leave so many string fragments lying
> around, roughly:
> 
> StringBuffer a = new StringBuffer();
> a.append("Test 1");
> a.append("Test 2");
> ...
> out.println(a.toString());
> 
> However, this will merely cause the GC to run more frequently; it won't
> run you out of memory.  Something else is causing that.
> 
> - Peter
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Peter Crowther
> From: NoKideen [mailto:[EMAIL PROTECTED] 
> usually I use String to collect output first and out.print() 
> those String
> example :
> String a="";
> a+="Test 1";
> a+="Test 2";
> // very long , and almost 1 page 
> 
> out.println(a);
> 
> can this cause out of memory problem ?

It won't help much - you'll build up String objects very quickly.  See
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/StringBuffer.html for
a better approach that won't leave so many string fragments lying
around, roughly:

StringBuffer a = new StringBuffer();
a.append("Test 1");
a.append("Test 2");
...
out.println(a.toString());

However, this will merely cause the GC to run more frequently; it won't
run you out of memory.  Something else is causing that.

- Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Allistair Crossley
A listener that calls

LogManager.shutdown();
LogFactory.releaseAll();
Introspector.flushCaches();

on contextDestroyed 

might also help if you are using certain apis like log4j, struts.

Allistair.

> -Original Message-
> From: Caldarale, Charles R [mailto:[EMAIL PROTECTED]
> Sent: 20 September 2005 15:08
> To: Tomcat Users List
> Subject: RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04
> 
> 
> > From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
> > Subject: RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04
> > 
> > 3 things to do;
> > 
> > Get a profiler to see where you may be losing memory.
> > Ensure no resource/references are held onto, dispose 
> > references correctly
> > Hard restart Tomcat when OOME occur.
> 
> In addition to the above, you might want to increase your -Xmx setting
> and the size of the permanent generation (-XX:PermSize=??).  
> This won't
> eliminate the need to restart Tomcat, but it may allow you more time
> between restarts.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE 
> PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you
> received this in error, please contact the sender and delete 
> the e-mail
> and its attachments from all computers.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
  
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread NoKideen
On Tuesday 20 September 2005 20:56, Allistair Crossley wrote:
> You'll almost likely find that the reload via Ant does not free up all
> resources and so each time you perform a reload you'll be leaking some
> memory resulting in OOME after a week.
>
> 3 things to do;
>
> Get a profiler to see where you may be losing memory.

I will do this,

> Ensure no resource/references are held onto, dispose references correctly
how do I know Resource still in memory, usually in my servlet I always close 
my database connection, 

usually I use String to collect output first and out.print() those String
example :
String a="";
a+="Test 1";
a+="Test 2";
// very long , and almost 1 page 

out.println(a);

can this cause out of memory problem ?

I though there is Garbage Collector, as usually in Java Native Program ? 
if Garbage Collector is not working, how do I free up Resource in servlet ?


> Hard restart Tomcat when OOME occur.

if ant reload, cause the problem, 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Caldarale, Charles R
> From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
> Subject: RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04
> 
> 3 things to do;
> 
> Get a profiler to see where you may be losing memory.
> Ensure no resource/references are held onto, dispose 
> references correctly
> Hard restart Tomcat when OOME occur.

In addition to the above, you might want to increase your -Xmx setting
and the size of the permanent generation (-XX:PermSize=??).  This won't
eliminate the need to restart Tomcat, but it may allow you more time
between restarts.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Phillip Qin
I would recommend you upgrade to 5.5.9 if you use struts.

-Original Message-
From: Allistair Crossley [mailto:[EMAIL PROTECTED] 
Sent: September 20, 2005 9:56 AM
To: Tomcat Users List
Subject: RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

You'll almost likely find that the reload via Ant does not free up all
resources and so each time you perform a reload you'll be leaking some
memory resulting in OOME after a week. 

3 things to do;

Get a profiler to see where you may be losing memory.
Ensure no resource/references are held onto, dispose references correctly
Hard restart Tomcat when OOME occur.

Allistair.

> -Original Message-
> From: NoKideen [mailto:[EMAIL PROTECTED]
> Sent: 20 September 2005 14:55
> To: tomcat-user@jakarta.apache.org
> Subject: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04
> 
> 
> Hi all, I'm new in this mailling list
> 
> I'm currently end up  ways to solve problem out of memory in tomcat
> 
> this is
> startup script in my Linux Fedora Core 2
> 
> CATALINA_OPTS=" -Djava.awt.headless=true -server -Xss128k 
> -Xincgc -Xms256m 
> -Xmx256m
> 
> CPU is on 1Giga Memory
> 
> and the problem out of memory, can't happen in specific 
> times, can't happen in 
> specific pages (both servlet and JSP), currently happen in 
> Random time/pages, 
> usually 1 Weeks after startup.
> 
> Server run 24 Hours/day for development only
> 
> 
> usually I use ant for reload servlet, after I change the java code
> 
> #ant reload
> 
> build.xml
> 
> - cut -
>  classname="org.apache.catalina.ant.ReloadTask"/>
> 
> 
> what should I do ?
> 
> Thanks in Advance,
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
  
Disclaimer:  The information contained within this e-mail is confidential
and may be privileged. This email is intended solely for the named recipient
only; if you are not authorised you must not disclose, copy, distribute, or
retain this message or any part of it. If you have received this message in
error please contact the sender at once so that we may take the appropriate
action and avoid troubling you further.  Any views expressed in this message
are those of the individual sender.  QAS Limited has the right lawfully to
record, monitor and inspect messages between its employees and any third
party.  Your messages shall be subject to such lawful supervision as QAS
Limited deems to be necessary in order to protect its information, its
interests and its reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS
Limited cannot guarantee that attachments are virus free or compatible with
your systems and does not accept any liability in respect of viruses or
computer problems experienced.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:43301517266771032322572!


RE: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04

2005-09-20 Thread Allistair Crossley
You'll almost likely find that the reload via Ant does not free up all 
resources and so each time you perform a reload you'll be leaking some memory 
resulting in OOME after a week. 

3 things to do;

Get a profiler to see where you may be losing memory.
Ensure no resource/references are held onto, dispose references correctly
Hard restart Tomcat when OOME occur.

Allistair.

> -Original Message-
> From: NoKideen [mailto:[EMAIL PROTECTED]
> Sent: 20 September 2005 14:55
> To: tomcat-user@jakarta.apache.org
> Subject: Out of Memory on Jakarta Tomcat 5.0.19, jdk1.5.0_04
> 
> 
> Hi all, I'm new in this mailling list
> 
> I'm currently end up  ways to solve problem out of memory in tomcat
> 
> this is
> startup script in my Linux Fedora Core 2
> 
> CATALINA_OPTS=" -Djava.awt.headless=true -server -Xss128k 
> -Xincgc -Xms256m 
> -Xmx256m
> 
> CPU is on 1Giga Memory
> 
> and the problem out of memory, can't happen in specific 
> times, can't happen in 
> specific pages (both servlet and JSP), currently happen in 
> Random time/pages, 
> usually 1 Weeks after startup.
> 
> Server run 24 Hours/day for development only
> 
> 
> usually I use ant for reload servlet, after I change the java code
> 
> #ant reload
> 
> build.xml
> 
> - cut -
>  classname="org.apache.catalina.ant.ReloadTask"/>
> 
> 
> what should I do ?
> 
> Thanks in Advance,
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
  
Disclaimer:  The information contained within this e-mail is confidential and 
may be privileged. This email is intended solely for the named recipient only; 
if you are not authorised you must not disclose, copy, distribute, or retain 
this message or any part of it. If you have received this message in error 
please contact the sender at once so that we may take the appropriate action 
and avoid troubling you further.  Any views expressed in this message are those 
of the individual sender.  QAS Limited has the right lawfully to record, 
monitor and inspect messages between its employees and any third party.  Your 
messages shall be subject to such lawful supervision as QAS Limited deems to be 
necessary in order to protect its information, its interests and its 
reputation.  

Whilst all efforts are made to safeguard Inbound and Outbound emails, QAS 
Limited cannot guarantee that attachments are virus free or compatible with 
your systems and does not accept any liability in respect of viruses or 
computer problems experienced.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of memory

2005-08-12 Thread Allistair Crossley
You can also get OOME in development by causing restarts by copying class files 
or web.xml files into a running web application with reloadable="true" and 
depending on how good you are at cleaning out your appliacation this leaks 
until such a point you get the OOME usually with PermGen error.

> -Original Message-
> From: Brian Cook [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 15:48
> To: Tomcat Users List
> Subject: Re: Out of memory
> 
> 
> 
> You would probably be better served looking at what you can change in 
> the app so it does not require so much RAM.  It has been my 
> experience 
> that when I get an out of memory error it is because I was 
> forgetting to 
> close an object, or calling too many large objects globally, 
> or reading 
> in too much data into a result set.
> 
> Of all my web apps only one requires the heap size to be 
> raised to the 
> 512MB limit.  It loads multiple 1MB - 10MB overlays them on 
> one another 
> and then dynamically overlays a lot of font specific 
> anti-aliasing text.
> 
> Unless the application is doing similarly demanding you would 
> probably 
> be better severed by debugging the app to see what is using 
> so much RAM.
> 
> If you are making a development error like say forgetting to close an 
> object something everyone on the list has done it is always better to 
> learn of errors as early as possible so you do not carry it over to 
> other apps.
> 
> A lesson I have learned the hard way.
> 
> 
> Allistair Crossley wrote:
> > Oh yes :) 
> > 
> > 
> >>-----Original Message-
> >>From: Wolfgang Hackl [mailto:[EMAIL PROTECTED]
> >>Sent: 12 August 2005 09:24
> >>To: Tomcat Users List
> >>Subject: RE: Out of memory
> >>
> >>
> >>
> >>
> >>>You can modify the memory settings for the windows service 
> >>
> >>also in the
> >>
> >>>service.bat file itself. I've been known to uninstall the 
> >>
> >>service, modify 
> >>
> >>>the bat file and then service install again. 
> >>
> >>Forget about a reinstall. Use regedit and go to 
> >>
> >>HKEY_LOCAL_MACHINE\SOFTWARE\Apache software Foundation\Procrun
> >>2.0\\Parameters\Java 
> >>
> >>and edit the JvmMx and JvmMs settings as your deployment requires.
> >>
> >>Kind regards
> >>Wolfgang
> >>
> >>-- 
> >>5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
> >>+++ GMX - die erste Adresse für Mail, Message, More +++
> >>
> >>
> -
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> > 
> > 
> > 
> >  
> > ---
> > QAS Ltd.
> > 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]
> > 
> > 
> 
> 
> -- 
> Brian Cook
> Digital Services Analyst
> Print Time Inc.
> [EMAIL PROTECTED]
> 913.345.8900
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Out of memory

2005-08-12 Thread Brian Cook


You would probably be better served looking at what you can change in 
the app so it does not require so much RAM.  It has been my experience 
that when I get an out of memory error it is because I was forgetting to 
close an object, or calling too many large objects globally, or reading 
in too much data into a result set.


Of all my web apps only one requires the heap size to be raised to the 
512MB limit.  It loads multiple 1MB - 10MB overlays them on one another 
and then dynamically overlays a lot of font specific anti-aliasing text.


Unless the application is doing similarly demanding you would probably 
be better severed by debugging the app to see what is using so much RAM.


If you are making a development error like say forgetting to close an 
object something everyone on the list has done it is always better to 
learn of errors as early as possible so you do not carry it over to 
other apps.


A lesson I have learned the hard way.


Allistair Crossley wrote:
Oh yes :) 




-Original Message-
From: Wolfgang Hackl [mailto:[EMAIL PROTECTED]
Sent: 12 August 2005 09:24
To: Tomcat Users List
Subject: RE: Out of memory




You can modify the memory settings for the windows service 


also in the

service.bat file itself. I've been known to uninstall the 


service, modify 

the bat file and then service install again. 


Forget about a reinstall. Use regedit and go to 


HKEY_LOCAL_MACHINE\SOFTWARE\Apache software Foundation\Procrun
2.0\\Parameters\Java 


and edit the JvmMx and JvmMs settings as your deployment requires.

Kind regards
Wolfgang

--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






 
---

QAS Ltd.
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]





--
Brian Cook
Digital Services Analyst
Print Time Inc.
[EMAIL PROTECTED]
913.345.8900

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Out of memory

2005-08-12 Thread Allistair Crossley
Oh yes :) 

> -Original Message-
> From: Wolfgang Hackl [mailto:[EMAIL PROTECTED]
> Sent: 12 August 2005 09:24
> To: Tomcat Users List
> Subject: RE: Out of memory
> 
> 
> 
> > You can modify the memory settings for the windows service 
> also in the
> > service.bat file itself. I've been known to uninstall the 
> service, modify 
> > the bat file and then service install again. 
> 
> Forget about a reinstall. Use regedit and go to 
> 
> HKEY_LOCAL_MACHINE\SOFTWARE\Apache software Foundation\Procrun
> 2.0\\Parameters\Java 
> 
> and edit the JvmMx and JvmMs settings as your deployment requires.
> 
> Kind regards
> Wolfgang
> 
> -- 
> 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
> +++ GMX - die erste Adresse für Mail, Message, More +++
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
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]



RE: Out of memory

2005-08-12 Thread Wolfgang Hackl

> You can modify the memory settings for the windows service also in the
> service.bat file itself. I've been known to uninstall the service, modify 
> the bat file and then service install again. 

Forget about a reinstall. Use regedit and go to 

HKEY_LOCAL_MACHINE\SOFTWARE\Apache software Foundation\Procrun
2.0\\Parameters\Java 

and edit the JvmMx and JvmMs settings as your deployment requires.

Kind regards
Wolfgang

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse für Mail, Message, More +++

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of memory

2005-08-12 Thread Allistair Crossley
Hi,

You can modify the memory settings for the windows service also in the 
service.bat file itself. I've been known to uninstall the service, modify the 
bat file and then service install again. I don't like using the binary version 
so that should work for you.

Secondly, OOMEs should be addressed by profiling (discussed lots on this list) 
not by throwing more memory at Tomcat (unless of course you have a valid need 
for all that RAM).

Allistair

> -Original Message-
> From: Yun Yang [mailto:[EMAIL PROTECTED]
> Sent: 11 August 2005 19:31
> To: Tomcat Users List
> Subject: Out of memory 
> 
> 
> 
> Hello,
> 
> I am using Tomcat5.0.28. When I try to run my web application, I got
> this message:
> 
> exception
>  
> javax.servlet.ServletException: Servlet execution threw an exception
> 
> root cause
> 
> java.lang.OutOfMemoryError
> 
>  
> How can I solve this problem? I tried to uninstall tomcat5 as service
> using "service.bat remove" and tried to reinstall it as service in
> Windows XP. How can I add option like "-xmx512M" into service.bat? Or
> How can I increase the heap size?
> 
> I added this statement into Catalina.bat "set JAVA_OPTS=-Xmx512m". It
> works. But When I run tomcat5.0 as server it still does not work.
> 
>  
> 
> Thanks,
> 
>  
> 
> Yun Yang
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
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]



Re: Out of memory

2005-08-11 Thread Matej Kafadar

Hi,

try to register Tomcat as service with nice GUI, where can you set such 
a parameters.


GUI is Tomcat Service Manager
http://web.bvu.edu/staff/david/index.jsp?section=software&subsection=tcservcfg&page=overview

regards

Matej

Yun Yang wrote:

Hello,

I am using Tomcat5.0.28. When I try to run my web application, I got
this message:

exception
 
javax.servlet.ServletException: Servlet execution threw an exception


root cause

java.lang.OutOfMemoryError

 
How can I solve this problem? I tried to uninstall tomcat5 as service

using "service.bat remove" and tried to reinstall it as service in
Windows XP. How can I add option like "-xmx512M" into service.bat? Or
How can I increase the heap size?

I added this statement into Catalina.bat "set JAVA_OPTS=-Xmx512m". It
works. But When I run tomcat5.0 as server it still does not work.

 


Thanks,

 


Yun Yang





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Out of memory

2005-08-11 Thread Ken Menzel
On Windows try the tomcat5w binary in the bin directory of tomcat. 
Hope this helps.


Ken
- Original Message - 
From: "Yun Yang" <[EMAIL PROTECTED]>

To: "Tomcat Users List" 
Sent: Thursday, August 11, 2005 2:31 PM
Subject: Out of memory




Hello,

I am using Tomcat5.0.28. When I try to run my web application, I got
this message:

exception

javax.servlet.ServletException: Servlet execution threw an exception

root cause

java.lang.OutOfMemoryError


How can I solve this problem? I tried to uninstall tomcat5 as 
service

using "service.bat remove" and tried to reinstall it as service in
Windows XP. How can I add option like "-xmx512M" into service.bat? 
Or

How can I increase the heap size?

I added this statement into Catalina.bat "set JAVA_OPTS=-Xmx512m". 
It

works. But When I run tomcat5.0 as server it still does not work.



Thanks,



Yun Yang





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: out of memory error while load testing

2005-07-15 Thread Bhaskar
You can change the JVM option, -Xmx to increase the heap size in 
catalina.sh and see if it can accomidate more requests


Peddireddy Srikanth wrote:


I forgot to give details about my Application and test.
These details might give you people an idea about the problem area.
In this app. users has to enter login ID and pwd in home page which
will be sent to a resource which validates these details, say
"LoginValidation"  this resource will then forward control to the Main
Page of the Application, say "MainPage.jsp" . From main page user can
open/ request different pages(modules of application).
But my test only involves a request to "LoginValidation" followed by
request to main page.
In this app. inorder to get data about certain activities happening on
the server side into the client browser, we keep on refreshing a
hidden frame in mainpage (simply using html meta refresh ) after every
one minute, lets call this page as PollServerForData.jsp.
To simulate this i added a request to  PollServerForData.jsp also in
my test plan after request to the main page (that means every virtual
user will be requesting the PollServerForData.jsp page after every one
minute)
This test worked for 1200 virtual users and failed for when tried with
more than 1200 users .
Will there be any problem for tomcat for maintaining more than 1200
sessions in memory??

regards
Srikanth.P


On 7/14/05, Bhaskar <[EMAIL PROTECTED]> wrote:
 


You need to check on whether it is giving Outofmemory error is
immediately after starting loadtesting with 1500 users or over period of
time. If it is over period of time then you need to check whether there
are any memory leaks. Or your design for ex., it might happen if you
query db and that ends up resulting in huge number of rows.
BTW., what is the max number of threads you have configured?
and what is the active number of threads? Pbly u can use
Performance-Valve to get such details.

Bhaskar


srikanth peddireddy wrote:

   


Hi All,

Recently we started load testing our application using Jmeter.
Following error is coming in tomcat while test is run at higher loads like 1500 
virtual users etc

  ==

SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
[EMAIL PROTECTED], terminating thread
Jun 30, 2005 3:13:53 PM 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run

==

I already configured the Tomcat using -Xmx option to use upto 2GB of RAM 
(Tomcat is running on a 3GB RAM machine)

Any inputs or pointers to the related resources on this problem??

regards
Srikanth


Disclaimer

This e-mail message may contain confidential, proprietary
or legally privileged information. It should not be used by
anyone who is not the original intended recipient. If you
have erroneously received this message, please delete it
immediately and notify the sender.

The views, opinions, conclusions and other information
expressed in this electronic mail are those of the
individual sender and not endorsed by SDG Software
Technologies Pvt. Ltd. unless otherwise indicated by an
authorised representative independent of this message.

Before opening any attachment please check them for viruses
and defects. SDG Software Technologies Pvt. Ltd. shall not
accept responsibility for any loss or damage arising from
the use of this email or attachment(s).
-

-
Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.com


 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 





Re: out of memory error while load testing

2005-07-15 Thread Bhaskar
start tomcat with -Xrunprof and look at the profile to figureout if 
there are any objects consuming more memory(leaks). Thread.activeCount() 
gives you total number of active threads in the current JVM.
Refer to javax.management to know more about the Mbeans to monitor the 
tomcat.


You need to write the proxy valve by implementing the 
org.apache.catalina.Valve,  interface. This proxy will gets the request 
and invokes the actual servlet. You can track the time taken to process 
each request here.


Bhaskar



Peddireddy Srikanth wrote:


Hi,
Its giving out of memory over a period of time (i.e after test ran for
some time ) not immediately after starting the test
Follwing settings are given in my server.xml
For HTTP 




For HTTPS

  maxThreads="150" minSpareThreads="25" maxSpareThreads="75"

  enableLookups="false" disableUploadTimeout="true"
  acceptCount="100" scheme="https" secure="true"
  clientAuth="false" sslProtocol="TLS" />


By  active threads do u mean the thread count shown in windows task
manager or is there any way to find out active threads in Tomcat? what
is this Performance-Valve? can u give some more details on it ?

Thank you

regards
Srikanth.P


On 7/14/05, Bhaskar <[EMAIL PROTECTED]> wrote:
 


You need to check on whether it is giving Outofmemory error is
immediately after starting loadtesting with 1500 users or over period of
time. If it is over period of time then you need to check whether there
are any memory leaks. Or your design for ex., it might happen if you
query db and that ends up resulting in huge number of rows.
BTW., what is the max number of threads you have configured?
and what is the active number of threads? Pbly u can use
Performance-Valve to get such details.

Bhaskar


srikanth peddireddy wrote:

   


Hi All,

Recently we started load testing our application using Jmeter.
Following error is coming in tomcat while test is run at higher loads like 1500 
virtual users etc

  ==

SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
[EMAIL PROTECTED], terminating thread
Jun 30, 2005 3:13:53 PM 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run

==

I already configured the Tomcat using -Xmx option to use upto 2GB of RAM 
(Tomcat is running on a 3GB RAM machine)

Any inputs or pointers to the related resources on this problem??

regards
Srikanth


Disclaimer

This e-mail message may contain confidential, proprietary
or legally privileged information. It should not be used by
anyone who is not the original intended recipient. If you
have erroneously received this message, please delete it
immediately and notify the sender.

The views, opinions, conclusions and other information
expressed in this electronic mail are those of the
individual sender and not endorsed by SDG Software
Technologies Pvt. Ltd. unless otherwise indicated by an
authorised representative independent of this message.

Before opening any attachment please check them for viruses
and defects. SDG Software Technologies Pvt. Ltd. shall not
accept responsibility for any loss or damage arising from
the use of this email or attachment(s).
-

-
Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.com


 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


   



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 





Re: out of memory error while load testing

2005-07-14 Thread Peddireddy Srikanth
I forgot to give details about my Application and test.
These details might give you people an idea about the problem area.
In this app. users has to enter login ID and pwd in home page which
will be sent to a resource which validates these details, say
"LoginValidation"  this resource will then forward control to the Main
Page of the Application, say "MainPage.jsp" . From main page user can
open/ request different pages(modules of application).
But my test only involves a request to "LoginValidation" followed by
request to main page.
In this app. inorder to get data about certain activities happening on
the server side into the client browser, we keep on refreshing a
hidden frame in mainpage (simply using html meta refresh ) after every
one minute, lets call this page as PollServerForData.jsp.
To simulate this i added a request to  PollServerForData.jsp also in
my test plan after request to the main page (that means every virtual
user will be requesting the PollServerForData.jsp page after every one
minute)
This test worked for 1200 virtual users and failed for when tried with
more than 1200 users .
Will there be any problem for tomcat for maintaining more than 1200
sessions in memory??

regards
Srikanth.P


On 7/14/05, Bhaskar <[EMAIL PROTECTED]> wrote:
> You need to check on whether it is giving Outofmemory error is
> immediately after starting loadtesting with 1500 users or over period of
> time. If it is over period of time then you need to check whether there
> are any memory leaks. Or your design for ex., it might happen if you
> query db and that ends up resulting in huge number of rows.
> BTW., what is the max number of threads you have configured?
>  and what is the active number of threads? Pbly u can use
> Performance-Valve to get such details.
> 
> Bhaskar
> 
> 
> srikanth peddireddy wrote:
> 
> >Hi All,
> >
> >Recently we started load testing our application using Jmeter.
> >Following error is coming in tomcat while test is run at higher loads like 
> >1500 virtual users etc
> >
> >==
> >
> >SEVERE: Caught exception (java.lang.OutOfMemoryError) executing 
> >org.apache.tomca
> >[EMAIL PROTECTED], terminating thread
> >Jun 30, 2005 3:13:53 PM 
> >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
> >
> >  ==
> >
> >I already configured the Tomcat using -Xmx option to use upto 2GB of RAM 
> >(Tomcat is running on a 3GB RAM machine)
> >
> >Any inputs or pointers to the related resources on this problem??
> >
> >regards
> >Srikanth
> >
> >
> >Disclaimer
> >
> >This e-mail message may contain confidential, proprietary
> >or legally privileged information. It should not be used by
> >anyone who is not the original intended recipient. If you
> >have erroneously received this message, please delete it
> >immediately and notify the sender.
> >
> >The views, opinions, conclusions and other information
> >expressed in this electronic mail are those of the
> >individual sender and not endorsed by SDG Software
> >Technologies Pvt. Ltd. unless otherwise indicated by an
> >authorised representative independent of this message.
> >
> >Before opening any attachment please check them for viruses
> >and defects. SDG Software Technologies Pvt. Ltd. shall not
> >accept responsibility for any loss or damage arising from
> >the use of this email or attachment(s).
> >-
> >
> >-
> > Free antispam, antivirus and 1GB to save all your messages
> > Only in Yahoo! Mail: http://in.mail.yahoo.com
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: out of memory error while load testing

2005-07-14 Thread Peddireddy Srikanth
Hi,
Its giving out of memory over a period of time (i.e after test ran for
some time ) not immediately after starting the test
Follwing settings are given in my server.xml
For HTTP 



For HTTPS

 


By  active threads do u mean the thread count shown in windows task
manager or is there any way to find out active threads in Tomcat? what
is this Performance-Valve? can u give some more details on it ?

Thank you

regards
Srikanth.P


On 7/14/05, Bhaskar <[EMAIL PROTECTED]> wrote:
> You need to check on whether it is giving Outofmemory error is
> immediately after starting loadtesting with 1500 users or over period of
> time. If it is over period of time then you need to check whether there
> are any memory leaks. Or your design for ex., it might happen if you
> query db and that ends up resulting in huge number of rows.
> BTW., what is the max number of threads you have configured?
> and what is the active number of threads? Pbly u can use
> Performance-Valve to get such details.
> 
> Bhaskar
> 
> 
> srikanth peddireddy wrote:
> 
> >Hi All,
> >
> >Recently we started load testing our application using Jmeter.
> >Following error is coming in tomcat while test is run at higher loads like 
> >1500 virtual users etc
> >
> >==
> >
> >SEVERE: Caught exception (java.lang.OutOfMemoryError) executing 
> >org.apache.tomca
> >[EMAIL PROTECTED], terminating thread
> >Jun 30, 2005 3:13:53 PM 
> >org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run
> >
> >  ==
> >
> >I already configured the Tomcat using -Xmx option to use upto 2GB of RAM 
> >(Tomcat is running on a 3GB RAM machine)
> >
> >Any inputs or pointers to the related resources on this problem??
> >
> >regards
> >Srikanth
> >
> >
> >Disclaimer
> >
> >This e-mail message may contain confidential, proprietary
> >or legally privileged information. It should not be used by
> >anyone who is not the original intended recipient. If you
> >have erroneously received this message, please delete it
> >immediately and notify the sender.
> >
> >The views, opinions, conclusions and other information
> >expressed in this electronic mail are those of the
> >individual sender and not endorsed by SDG Software
> >Technologies Pvt. Ltd. unless otherwise indicated by an
> >authorised representative independent of this message.
> >
> >Before opening any attachment please check them for viruses
> >and defects. SDG Software Technologies Pvt. Ltd. shall not
> >accept responsibility for any loss or damage arising from
> >the use of this email or attachment(s).
> >-
> >
> >-
> > Free antispam, antivirus and 1GB to save all your messages
> > Only in Yahoo! Mail: http://in.mail.yahoo.com
> >
> >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: out of memory error while load testing

2005-07-14 Thread Bhaskar
You need to check on whether it is giving Outofmemory error is 
immediately after starting loadtesting with 1500 users or over period of 
time. If it is over period of time then you need to check whether there 
are any memory leaks. Or your design for ex., it might happen if you 
query db and that ends up resulting in huge number of rows.

BTW., what is the max number of threads you have configured?
and what is the active number of threads? Pbly u can use 
Performance-Valve to get such details.


Bhaskar


srikanth peddireddy wrote:


Hi All,

Recently we started load testing our application using Jmeter.
Following error is coming in tomcat while test is run at higher loads like 1500 
virtual users etc

   ==

SEVERE: Caught exception (java.lang.OutOfMemoryError) executing org.apache.tomca
[EMAIL PROTECTED], terminating thread
Jun 30, 2005 3:13:53 PM 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run

 ==

I already configured the Tomcat using -Xmx option to use upto 2GB of RAM 
(Tomcat is running on a 3GB RAM machine)

Any inputs or pointers to the related resources on this problem??

regards
Srikanth


Disclaimer

This e-mail message may contain confidential, proprietary 
or legally privileged information. It should not be used by

anyone who is not the original intended recipient. If you
have erroneously received this message, please delete it
immediately and notify the sender. 

The views, opinions, conclusions and other information 
expressed in this electronic mail are those of the 
individual sender and not endorsed by SDG Software 
Technologies Pvt. Ltd. unless otherwise indicated by an 
authorised representative independent of this message.


Before opening any attachment please check them for viruses 
and defects. SDG Software Technologies Pvt. Ltd. shall not 
accept responsibility for any loss or damage arising from 
the use of this email or attachment(s).

-

-
Free antispam, antivirus and 1GB to save all your messages
Only in Yahoo! Mail: http://in.mail.yahoo.com
 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Out of memory

2005-06-16 Thread Christoph Kutzinski

Hi,

first: You should start a new discussion thread, if you have a new 
question instead of answering to an existing one. Readers may not see 
your question if you don't.


-XX:+UseAdaptiveSizePolicy works good for me (with Java 5.0). Just give 
the VM a very big maximum heap size and the gc algorithm will determine 
for itself how much of the memory it needs.


Here is more info:
http://java.sun.com/developer/JDCTechTips/2005/tt0216.html#2


hth,
Christoph

David Wall wrote:
This is no doubt a java-related question, but it seems that with virtual 
memory, my JVM should never run out of memory (aside from a nasty bug 
and lack of swap disk space).  Is there a way to allow my web 
application to have as much memory as the OS will give it, yet not have 
the JVM attempt to consume all that space before the GC reclaims the 
space?  I'd like the JVM to start with 64M, max out around 1GB in terms 
of "holding the memory," yet allow it to use more memory when it needs 
it, and then have it attempt to release that memory so as not to cause 
swapping once the high memory need has disappeared.


Can this be done?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: out of memory error

2005-04-26 Thread Trond G. Ziarkowski
Speaking of disk space, I ran out of it today because my cron job to 
delete my log files didn't work. Ooopppsss ;)

Trond
Mark Benussi wrote:
: ) Yes Matt good point.
For future reference if anyone is seeing any disk full issues then 
they do not have a big enough hard disk...

Original Message Follows
From: "Dale, Matt" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: "Tomcat Users List" 
Subject: RE: out of memory error
Date: Tue, 26 Apr 2005 15:42:51 +0100
Or you simply don't have enough memory allocated to the JVM and you 
need to increase it.

-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Sent: 26 April 2005 15:41
To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org
Subject: RE: out of memory error
I hit this issue today, for a host of reasons.
You are getting this error because the ammount of memory allocated to the
JVM running Tomcat has been taken up. This ould be for the following
reasons:
You are doing some large database reads without using a methodology to 
read
in batches.
You are storing large objects in the request or session.
You may have memory leaks (A term I hate because it implies that there 
is a
problem in the underlying system but what it actually means is you are
keeping references to objects you no longer require).

Original Message Follows
From: Sergey Livanov <[EMAIL PROTECTED]>
Reply-To: Sergey Livanov <[EMAIL PROTECTED]>
To: Tomcat users 
Subject: out of memory error
Date: Tue, 26 Apr 2005 17:10:02 +0300
Pls help me to investigate type of error. Sometimes pages are not
downloaded. We have looked into Log file and found out a message "out of
memory". When is this error appeared and what do we have to do to 
avoid this
type of error?

2005-04-25 08:15:10 ApplicationDispatcher[] Servlet.service() for servlet
jsp threw exception
java.lang.OutOfMemoryError
2005-04-25 08:15:11 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
java.lang.OutOfMemoryError
--
regards,
  Sergey  mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: out of memory error

2005-04-26 Thread Mark Benussi
: ) Yes Matt good point.
For future reference if anyone is seeing any disk full issues then they do 
not have a big enough hard disk...

Original Message Follows
From: "Dale, Matt" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" 
To: "Tomcat Users List" 
Subject: RE: out of memory error
Date: Tue, 26 Apr 2005 15:42:51 +0100
Or you simply don't have enough memory allocated to the JVM and you need to 
increase it.

-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Sent: 26 April 2005 15:41
To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org
Subject: RE: out of memory error
I hit this issue today, for a host of reasons.
You are getting this error because the ammount of memory allocated to the
JVM running Tomcat has been taken up. This ould be for the following
reasons:
You are doing some large database reads without using a methodology to read
in batches.
You are storing large objects in the request or session.
You may have memory leaks (A term I hate because it implies that there is a
problem in the underlying system but what it actually means is you are
keeping references to objects you no longer require).
Original Message Follows
From: Sergey Livanov <[EMAIL PROTECTED]>
Reply-To: Sergey Livanov <[EMAIL PROTECTED]>
To: Tomcat users 
Subject: out of memory error
Date: Tue, 26 Apr 2005 17:10:02 +0300
Pls help me to investigate type of error. Sometimes pages are not
downloaded. We have looked into Log file and found out a message "out of
memory". When is this error appeared and what do we have to do to avoid this
type of error?
2005-04-25 08:15:10 ApplicationDispatcher[] Servlet.service() for servlet
jsp threw exception
java.lang.OutOfMemoryError
2005-04-25 08:15:11 StandardWrapperValve[action]: Servlet.service() for
servlet action threw exception
java.lang.OutOfMemoryError
--
regards,
  Sergey  mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: out of memory error

2005-04-26 Thread Dale, Matt

Or you simply don't have enough memory allocated to the JVM and you need to 
increase it.

-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Sent: 26 April 2005 15:41
To: [EMAIL PROTECTED]; tomcat-user@jakarta.apache.org
Subject: RE: out of memory error


I hit this issue today, for a host of reasons.

You are getting this error because the ammount of memory allocated to the 
JVM running Tomcat has been taken up. This ould be for the following 
reasons:

You are doing some large database reads without using a methodology to read 
in batches.
You are storing large objects in the request or session.
You may have memory leaks (A term I hate because it implies that there is a 
problem in the underlying system but what it actually means is you are 
keeping references to objects you no longer require).


Original Message Follows
From: Sergey Livanov <[EMAIL PROTECTED]>
Reply-To: Sergey Livanov <[EMAIL PROTECTED]>
To: Tomcat users 
Subject: out of memory error
Date: Tue, 26 Apr 2005 17:10:02 +0300

Pls help me to investigate type of error. Sometimes pages are not
downloaded. We have looked into Log file and found out a message "out of
memory". When is this error appeared and what do we have to do to avoid this
type of error?


2005-04-25 08:15:10 ApplicationDispatcher[] Servlet.service() for servlet 
jsp threw exception
java.lang.OutOfMemoryError

2005-04-25 08:15:11 StandardWrapperValve[action]: Servlet.service() for 
servlet action threw exception
java.lang.OutOfMemoryError


--
regards,
  Sergey  mailto:[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: out of memory error

2005-04-26 Thread Mark Benussi
I hit this issue today, for a host of reasons.
You are getting this error because the ammount of memory allocated to the 
JVM running Tomcat has been taken up. This ould be for the following 
reasons:

You are doing some large database reads without using a methodology to read 
in batches.
You are storing large objects in the request or session.
You may have memory leaks (A term I hate because it implies that there is a 
problem in the underlying system but what it actually means is you are 
keeping references to objects you no longer require).

Original Message Follows
From: Sergey Livanov <[EMAIL PROTECTED]>
Reply-To: Sergey Livanov <[EMAIL PROTECTED]>
To: Tomcat users 
Subject: out of memory error
Date: Tue, 26 Apr 2005 17:10:02 +0300
Pls help me to investigate type of error. Sometimes pages are not
downloaded. We have looked into Log file and found out a message “out of
memory”. When is this error appeared and what do we have to do to avoid this
type of error?
2005-04-25 08:15:10 ApplicationDispatcher[] Servlet.service() for servlet 
jsp threw exception
java.lang.OutOfMemoryError

2005-04-25 08:15:11 StandardWrapperValve[action]: Servlet.service() for 
servlet action threw exception
java.lang.OutOfMemoryError

--
regards,
 Sergey  mailto:[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Re: out of memory when there is plenty

2005-02-22 Thread Oleg
Any tips on optimizing usage of Virtual Hosts, I narrowed down the
problem a bit. I can have 500 users running without any memory
problems on the server if I set them all up under localhost/userXXX
but as soon as I start assigning virtual hosts to each user, I crash
at about a 100. Same problem 1GB ram avaiable but server crashes at
like 350MB, any ideas?

Thanks
Oleg


On Sun, 20 Feb 2005 0:02:48 -0500, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> JProfiler is best in case of Tomcat.
> Shakeel.
> >
> > From: Oleg <[EMAIL PROTECTED]>
> > Date: 2005/02/19 Sat PM 06:15:10 EST
> > To: Tomcat Users List 
> > Subject: Re: out of memory when there is plenty
> >
> > Hey guys, thanks for response.
> > Yes JVM is 1.4.2_06
> > So it can be pretty much anything not just the memory, alright that
> > makes perfect sense, but creates a bigger problem, how do I find out
> > now whats wrong. Will memory profiling help? JProbe or Optimizeit I
> > think  those are the only two I keep on hearing about.
> >
> > Thansk
> > Oleg
> >
> >
> > On Sat, 19 Feb 2005 08:38:34 -0600, Caldarale, Charles R
> > <[EMAIL PROTECTED]> wrote:
> > > > From: Oleg [mailto:[EMAIL PROTECTED]
> > > > Subject: out of memory when there is plenty
> > > >
> > > > My question is what can cause Tomcat to report out of memory error
> > > > when so much is still available.
> > >
> > > As has been discussed before on this mailing list, the OutOfMemory 
> > > exception is somewhat of a catch-all.  The JVM generates this exception 
> > > not just for overflowing heap space, but also pretty much anytime limits 
> > > imposed by the underlying OS are reached.  These limits include such 
> > > things as stack space, open files, and number of threads.
> > >
> > > You didn't mention the JVM version you're using (this is often critical), 
> > > but a 1.4 and above JVM can run out of space in the Permanent Generation 
> > > portion of the heap, even though there's plenty of room available in the 
> > > other portions.  This occurs more frequently in multiple classloader 
> > > environments such as Tomcat, and, again, has been discussed in some 
> > > detail on this mailing list.
> > >
> > > - Chuck
> > >
> > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
> > > MATERIAL and is thus for use only by the intended recipient. If you 
> > > received this in error, please contact the sender and delete the e-mail 
> > > and its attachments from all computers.
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: out of memory when there is plenty

2005-02-19 Thread shakeel
JProfiler is best in case of Tomcat.
Shakeel.
> 
> From: Oleg <[EMAIL PROTECTED]>
> Date: 2005/02/19 Sat PM 06:15:10 EST
> To: Tomcat Users List 
> Subject: Re: out of memory when there is plenty
> 
> Hey guys, thanks for response.
> Yes JVM is 1.4.2_06
> So it can be pretty much anything not just the memory, alright that
> makes perfect sense, but creates a bigger problem, how do I find out
> now whats wrong. Will memory profiling help? JProbe or Optimizeit I
> think  those are the only two I keep on hearing about.
> 
> Thansk
> Oleg
> 
> 
> On Sat, 19 Feb 2005 08:38:34 -0600, Caldarale, Charles R
> <[EMAIL PROTECTED]> wrote:
> > > From: Oleg [mailto:[EMAIL PROTECTED]
> > > Subject: out of memory when there is plenty
> > >
> > > My question is what can cause Tomcat to report out of memory error
> > > when so much is still available.
> > 
> > As has been discussed before on this mailing list, the OutOfMemory 
> > exception is somewhat of a catch-all.  The JVM generates this exception not 
> > just for overflowing heap space, but also pretty much anytime limits 
> > imposed by the underlying OS are reached.  These limits include such things 
> > as stack space, open files, and number of threads.
> > 
> > You didn't mention the JVM version you're using (this is often critical), 
> > but a 1.4 and above JVM can run out of space in the Permanent Generation 
> > portion of the heap, even though there's plenty of room available in the 
> > other portions.  This occurs more frequently in multiple classloader 
> > environments such as Tomcat, and, again, has been discussed in some detail 
> > on this mailing list.
> > 
> > - Chuck
> > 
> > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
> > MATERIAL and is thus for use only by the intended recipient. If you 
> > received this in error, please contact the sender and delete the e-mail and 
> > its attachments from all computers.
> > 
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: out of memory when there is plenty

2005-02-19 Thread Caldarale, Charles R
> From: Oleg [mailto:[EMAIL PROTECTED]
> Subject: Re: out of memory when there is plenty
> 
> 2005-02-17 14:55:48 StandardWrapperValve[jsp]: Servlet.service() for
> servlet jsp threw exception
> java.lang.OutOfMemoryError

You need to find the stack trace that should have been generated at the time of 
the exception.  It may be buried in one of the logs, or you may have to 
increase the verbosity of the logger.  Can't tell you where that might be done.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: out of memory when there is plenty

2005-02-19 Thread Oleg
The out of memory errors all look like:

2005-02-17 14:55:48 StandardWrapperValve[jsp]: Servlet.service() for
servlet jsp threw exception
java.lang.OutOfMemoryError

or

2005-02-17 15:10:33 ApplicationDispatcher[/myuserapp1]
Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError


Any ideas?

On Sat, 19 Feb 2005 17:41:56 -0600, Caldarale, Charles R
<[EMAIL PROTECTED]> wrote:
> > From: Oleg [mailto:[EMAIL PROTECTED]
> > Subject: Re: out of memory when there is plenty
> >
> > how do I find out now whats wrong.
> 
> Try specifying -verbose:gc on the command line; this will at least tell you 
> whether or not it is a heap memory problem.  Also, look at the stack trace 
> from the exception and see if it's related to some request for system 
> services (e.g., thread creation).
> 
> If you really are running out of memory, then a profiler will help you 
> determine what's eating it up.
> 
> - Chuck
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
> MATERIAL and is thus for use only by the intended recipient. If you received 
> this in error, please contact the sender and delete the e-mail and its 
> attachments from all computers.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: out of memory when there is plenty

2005-02-19 Thread Caldarale, Charles R
> From: Oleg [mailto:[EMAIL PROTECTED]
> Subject: Re: out of memory when there is plenty
> 
> how do I find out now whats wrong.

Try specifying -verbose:gc on the command line; this will at least tell you 
whether or not it is a heap memory problem.  Also, look at the stack trace from 
the exception and see if it's related to some request for system services 
(e.g., thread creation).

If you really are running out of memory, then a profiler will help you 
determine what's eating it up.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: out of memory when there is plenty

2005-02-19 Thread Oleg
Hey guys, thanks for response.
Yes JVM is 1.4.2_06
So it can be pretty much anything not just the memory, alright that
makes perfect sense, but creates a bigger problem, how do I find out
now whats wrong. Will memory profiling help? JProbe or Optimizeit I
think  those are the only two I keep on hearing about.

Thansk
Oleg


On Sat, 19 Feb 2005 08:38:34 -0600, Caldarale, Charles R
<[EMAIL PROTECTED]> wrote:
> > From: Oleg [mailto:[EMAIL PROTECTED]
> > Subject: out of memory when there is plenty
> >
> > My question is what can cause Tomcat to report out of memory error
> > when so much is still available.
> 
> As has been discussed before on this mailing list, the OutOfMemory exception 
> is somewhat of a catch-all.  The JVM generates this exception not just for 
> overflowing heap space, but also pretty much anytime limits imposed by the 
> underlying OS are reached.  These limits include such things as stack space, 
> open files, and number of threads.
> 
> You didn't mention the JVM version you're using (this is often critical), but 
> a 1.4 and above JVM can run out of space in the Permanent Generation portion 
> of the heap, even though there's plenty of room available in the other 
> portions.  This occurs more frequently in multiple classloader environments 
> such as Tomcat, and, again, has been discussed in some detail on this mailing 
> list.
> 
> - Chuck
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
> MATERIAL and is thus for use only by the intended recipient. If you received 
> this in error, please contact the sender and delete the e-mail and its 
> attachments from all computers.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: out of memory when there is plenty

2005-02-19 Thread Caldarale, Charles R
> From: Oleg [mailto:[EMAIL PROTECTED]
> Subject: out of memory when there is plenty
> 
> My question is what can cause Tomcat to report out of memory error
> when so much is still available.

As has been discussed before on this mailing list, the OutOfMemory exception is 
somewhat of a catch-all.  The JVM generates this exception not just for 
overflowing heap space, but also pretty much anytime limits imposed by the 
underlying OS are reached.  These limits include such things as stack space, 
open files, and number of threads.

You didn't mention the JVM version you're using (this is often critical), but a 
1.4 and above JVM can run out of space in the Permanent Generation portion of 
the heap, even though there's plenty of room available in the other portions.  
This occurs more frequently in multiple classloader environments such as 
Tomcat, and, again, has been discussed in some detail on this mailing list.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: out of memory when there is plenty

2005-02-19 Thread Joe Reger, Jr.

Throw the following code into a jsp and view it.  It'll give you a little
graph showing you how much memory Tomcat can use, has allocated and is
using.  This will tell you if you've properly set the max memory value and
may help you figure out what's happening.  Best,  Joe

StringBuffer mb = new StringBuffer();
mb.append("");

mb.append("");

Runtime rt = Runtime.getRuntime();
mb.append("Maximum memory available: " + rt.maxMemory() + "");
mb.append("Total memory allocated: " + rt.totalMemory() + "");
mb.append("Free memory unused: " + rt.freeMemory() + "");

double used = 0;
double free = 0;
double available = 0;

used = rt.totalMemory()-rt.freeMemory();
free = rt.freeMemory();
available =  rt.maxMemory()-rt.totalMemory();

double usedpercent = (used/rt.maxMemory()) * 100;
double freepercent = (free/rt.maxMemory()) * 100;
double availablepercent = (available/rt.maxMemory()) * 100;

mb.append("");

mb.append("");
mb.append("");
mb.append("");
mb.append("");
mb.append("U");
mb.append("");
mb.append("");
mb.append("");
mb.append("");
mb.append("F");
mb.append("");
mb.append("");
mb.append("");
mb.append("");
mb.append("A");
mb.append("");
mb.append("");
mb.append("");
mb.append("");

mb.append("");

mb.append((int)used + " Used - "+(int)usedpercent+"%");
mb.append((int)free + " Free - "+(int)freepercent+"%");
mb.append((int)available + " Available -
"+(int)availablepercent+"%");

out.print(mb.toString());



-Original Message-
From: Oleg [mailto:[EMAIL PROTECTED] 
Sent: Saturday, February 19, 2005 4:09 AM
To: Tomcat Users List
Subject: out of memory when there is plenty

Windows 2003
Tomcat 5.0.28

Ok I searched and searched endless and still cannot  understand what the
problem in my case. Ok, I understand that there can be a leak in teh code
and thats why Tomcat runs out of memory. However, the server got total 2GB
Ram memory, Tomcat is set to use min 512, max 1024. When I start getting an
out of memory error, Tomcat5 in task manager shows anywhere 350MB to 390MB,
I run a script on the server to check Runtime and it shows that memeory
usage is very low compared to max/min settings and there are about 600MB
available.

My question is what can cause Tomcat to report out of memory error when so
much is still available.

Thank you
Oleg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: out of memory when there is plenty

2005-02-19 Thread webmaster
it's time to go...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: out of memory when there is plenty

2005-02-19 Thread webmaster
it's time to go...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Re: Re: Re: Re: Re: Re: Re: out of memory when there is plenty

2005-02-19 Thread webmaster
it's time to go...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Re: Re: Re: Re: Re: Re: out of memory when there is plenty

2005-02-19 Thread webmaster
it's time to go...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Re: Re: Re: Re: Re: out of memory when there is plenty

2005-02-19 Thread webmaster
it's time to go...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Re: Re: Re: Re: out of memory when there is plenty

2005-02-19 Thread webmaster
it's time to go...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Re: Re: Re: out of memory when there is plenty

2005-02-19 Thread webmaster
it's time to go...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Re: Re: out of memory when there is plenty

2005-02-19 Thread webmaster
it's time to go...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Re: out of memory when there is plenty

2005-02-19 Thread webmaster
it's time to go...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: out of memory when there is plenty

2005-02-19 Thread webmaster
it's time to go...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: out of memory when there is plenty

2005-02-19 Thread shakeel
how did you set min and max values for memory in tomcat 5
> 
> From: Oleg <[EMAIL PROTECTED]>
> Date: 2005/02/19 Sat AM 04:09:12 EST
> To: Tomcat Users List 
> Subject: out of memory when there is plenty
> 
> Windows 2003
> Tomcat 5.0.28
> 
> Ok I searched and searched endless and still cannot  understand what
> the problem in my case. Ok, I understand that there can be a leak in
> teh code and thats why Tomcat runs out of memory. However, the server
> got total 2GB Ram memory, Tomcat is set to use min 512, max 1024. When
> I start getting an out of memory error, Tomcat5 in task manager shows
> anywhere 350MB to 390MB, I run a script on the server to check Runtime
> and it shows that memeory usage is very low compared to max/min
> settings and there are about 600MB available.
> 
> My question is what can cause Tomcat to report out of memory error
> when so much is still available.
> 
> Thank you
> Oleg
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: out of memory error with more than a few sites

2005-01-24 Thread Tim Funk
http://jakarta.apache.org/tomcat/faq/memory.html
I bet your machine has some kernel limits on number of open files that you 
are passing.

-Tim
Helmut Eggebert wrote:
Hi,
I am getting an out of memory error when I start Tomcat.   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Re: out of memory error with more than a few sites

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: out of memory error with more than a few sites

2005-01-24 Thread bounce
Geachte relatie,

Het door u gebruikte e-mailadres is niet meer actief. U kunt uw e-mailbericht 
sturen naar [EMAIL PROTECTED] of dit bericht beantwoorden.

Bedankt voor uw medewerking,

Met vriendelijke groet,

ATP Hypotheken
Het Spoor 40
3994 AK Houten

Tel. 030 750 25 33
Fax. 030 750 25 88
[EMAIL PROTECTED]

 -- DIT IS EEN AUTOMATISCH GEGENEREERD E-MAILBERICHT --



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27)

2005-01-08 Thread Ryan Stewart
If you're nervous about registry work, back up your registry. Then open regedit 
and find:
HKLM\SYSTEM\CurrentControlSet\Services\Apache Tomcat 4.1\Parameters

(You can choose a different control set as well, and for Tomcat 5 users, this 
is under ...\Services\Tomcat5\Parameters.)

You should see some Java startup options there already. They are named "JVM 
Option Number x" where x is a zero-based option count. The x *must* be 
incremented by one each time. If you skip a number, only the options before the 
skip will be loaded. e.g. If you set options 0, 1, 3, 4, and 5, then only 0 and 
1 will be loaded. The rest will be ignored. Also, you must set the "JVM Option 
Count" key to the total number of options you have set. This will be one more 
than your highest option number. Think of it as an array where the options are 
the elements and the option count is the array length. I would guess that's how 
it's implemented.

-Original Message-
From: "David Johnson"<[EMAIL PROTECTED]>
To: "Tomcat Users List"
Date: Thu Jan 06 07:40:27 PST 2005
Subject: Re: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27)

>Cool. Thanks
>
>the question is how do I get all of these options working when tomcat
>runs as a service...
>
>
>
>
>On Thu, 6 Jan 2005 15:28:30 -, Dale, Matt <[EMAIL PROTECTED]> wrote:
>> It could also be that the Permanent Generation has filled up, look up the 
>> docs on how to increase that or start with -XX:MaxPermSize=128M
>> 
>> -Original Message-
>> From: SANTOS, DANIEL (SBCSI) [mailto:[EMAIL PROTECTED]
>> Sent: 06 January 2005 14:57
>> To: Tomcat Users List; [EMAIL PROTECTED]
>> Subject: RE: Out of Memory when compiling JSP (Struts app on Tomcat
>> 4.1.27)
>> 
>> Chachany,
>> 
>> It sounds like it's using the default of -Xmx64m.  Probably the best way
>> to troubleshoot out or memory errors is to see what is really happening
>> with garbage collecting, the same way that you tune it.  If you can add
>> these options, then the JVM will spit out all kinds of useful
>> information:
>> 
>> -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -Xverbosegc
>> 
>> But it sounds like the problem is that it's not getting the options.
>> What you really need to figure out is exactly how the service is getting
>> started.  For instance, if it's calling tomcat.exe then I don't believe
>> that the JAVA_OPTS environment variable is ever looked at since that is
>> in the startup.sh and startup.bat files (I'm not 100% certain about that
>> however).
>> 
>> Find out how it's starting.  Also, post the version of Java you are
>> using (since the options I gave you above don't work on all versions, I
>> think 1.4 and up or 1.3 and up).  But the -Xverbosegc works all the way
>> back to 1.1 if I'm correct.
>> 
>> Daniel
>> 
>> -Original Message-
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>> Sent: Thursday, January 06, 2005 8:25 AM
>> To: tomcat-user@jakarta.apache.org
>> Subject: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27)
>> 
>> Hi all
>> 
>> I'm working on an application currently that is experiencing some
>> intermittent memory problems when installed onto our "integration
>> test" server, but not on the development staff's local laptops.
>> 
>> I have attempted to increase the maximum memory available to Tomcat by
>> creating a global environment variable (because tomcat runs as a
>> service)
>> 
>> JAVA_OPTS=-Xmx512M
>> 
>> Which doesnt seem to have made a difference. Is this the best way to
>> increaqte the memory available to an application? Is my syntax wrong?
>> Are there other options I can set that will help?
>> 
>> The weird thing is that when I look at the memory usage of Tomcat.exe,
>> the most memory it has used is 110,000
>> 
>> there seems to be no pattern to the memory errors (as usual) and it
>> happens a lot when compiling JSP files.
>> 
>> The system memory seems high, but not horribly so. I see the following
>> in Task Manager
>> 
>> MEM Usage = 885,000 (varies)
>> 
>> Commit Charge:
>> Limit : 2,522,244
>> Peak : 958,260
>> 
>> Anyone?
>> 
>> Thanks!
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> -

RE: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27)

2005-01-06 Thread Allistair Crossley
check out bin/service.bat --JvmOptions you will need to uninstall the service 
first and then reinstall it with the edited service.bat.

Allistair.

> -Original Message-
> From: David Johnson [mailto:[EMAIL PROTECTED]
> Sent: 06 January 2005 15:40
> To: Tomcat Users List
> Subject: Re: Out of Memory when compiling JSP (Struts app on Tomcat
> 4.1.27)
> 
> 
> Cool. Thanks
> 
> the question is how do I get all of these options working when tomcat
> runs as a service...
> 
> 
> 
> 
> On Thu, 6 Jan 2005 15:28:30 -, Dale, Matt 
> <[EMAIL PROTECTED]> wrote:
> > It could also be that the Permanent Generation has filled 
> up, look up the docs on how to increase that or start with 
> -XX:MaxPermSize=128M
> > 
> > -Original Message-
> > From: SANTOS, DANIEL (SBCSI) [mailto:[EMAIL PROTECTED]
> > Sent: 06 January 2005 14:57
> > To: Tomcat Users List; [EMAIL PROTECTED]
> > Subject: RE: Out of Memory when compiling JSP (Struts app on Tomcat
> > 4.1.27)
> > 
> > Chachany,
> > 
> > It sounds like it's using the default of -Xmx64m.  Probably 
> the best way
> > to troubleshoot out or memory errors is to see what is 
> really happening
> > with garbage collecting, the same way that you tune it.  If 
> you can add
> > these options, then the JVM will spit out all kinds of useful
> > information:
> > 
> > -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -Xverbosegc
> > 
> > But it sounds like the problem is that it's not getting the options.
> > What you really need to figure out is exactly how the 
> service is getting
> > started.  For instance, if it's calling tomcat.exe then I 
> don't believe
> > that the JAVA_OPTS environment variable is ever looked at 
> since that is
> > in the startup.sh and startup.bat files (I'm not 100% 
> certain about that
> > however).
> > 
> > Find out how it's starting.  Also, post the version of Java you are
> > using (since the options I gave you above don't work on all 
> versions, I
> > think 1.4 and up or 1.3 and up).  But the -Xverbosegc works 
> all the way
> > back to 1.1 if I'm correct.
> > 
> > Daniel
> > 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, January 06, 2005 8:25 AM
> > To: tomcat-user@jakarta.apache.org
> > Subject: Out of Memory when compiling JSP (Struts app on 
> Tomcat 4.1.27)
> > 
> > Hi all
> > 
> > I'm working on an application currently that is experiencing some
> > intermittent memory problems when installed onto our "integration
> > test" server, but not on the development staff's local laptops.
> > 
> > I have attempted to increase the maximum memory available 
> to Tomcat by
> > creating a global environment variable (because tomcat runs as a
> > service)
> > 
> > JAVA_OPTS=-Xmx512M
> > 
> > Which doesnt seem to have made a difference. Is this the best way to
> > increaqte the memory available to an application? Is my 
> syntax wrong?
> > Are there other options I can set that will help?
> > 
> > The weird thing is that when I look at the memory usage of 
> Tomcat.exe,
> > the most memory it has used is 110,000
> > 
> > there seems to be no pattern to the memory errors (as usual) and it
> > happens a lot when compiling JSP files.
> > 
> > The system memory seems high, but not horribly so. I see 
> the following
> > in Task Manager
> > 
> > MEM Usage = 885,000 (varies)
> > 
> > Commit Charge:
> > Limit : 2,522,244
> > Peak : 958,260
> > 
> > Anyone?
> > 
> > Thanks!
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>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]



Re: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27)

2005-01-06 Thread David Johnson
Cool. Thanks

the question is how do I get all of these options working when tomcat
runs as a service...




On Thu, 6 Jan 2005 15:28:30 -, Dale, Matt <[EMAIL PROTECTED]> wrote:
> It could also be that the Permanent Generation has filled up, look up the 
> docs on how to increase that or start with -XX:MaxPermSize=128M
> 
> -Original Message-
> From: SANTOS, DANIEL (SBCSI) [mailto:[EMAIL PROTECTED]
> Sent: 06 January 2005 14:57
> To: Tomcat Users List; [EMAIL PROTECTED]
> Subject: RE: Out of Memory when compiling JSP (Struts app on Tomcat
> 4.1.27)
> 
> Chachany,
> 
> It sounds like it's using the default of -Xmx64m.  Probably the best way
> to troubleshoot out or memory errors is to see what is really happening
> with garbage collecting, the same way that you tune it.  If you can add
> these options, then the JVM will spit out all kinds of useful
> information:
> 
> -XX:+PrintTenuringDistribution -XX:+PrintGCDetails -Xverbosegc
> 
> But it sounds like the problem is that it's not getting the options.
> What you really need to figure out is exactly how the service is getting
> started.  For instance, if it's calling tomcat.exe then I don't believe
> that the JAVA_OPTS environment variable is ever looked at since that is
> in the startup.sh and startup.bat files (I'm not 100% certain about that
> however).
> 
> Find out how it's starting.  Also, post the version of Java you are
> using (since the options I gave you above don't work on all versions, I
> think 1.4 and up or 1.3 and up).  But the -Xverbosegc works all the way
> back to 1.1 if I'm correct.
> 
> Daniel
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 06, 2005 8:25 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27)
> 
> Hi all
> 
> I'm working on an application currently that is experiencing some
> intermittent memory problems when installed onto our "integration
> test" server, but not on the development staff's local laptops.
> 
> I have attempted to increase the maximum memory available to Tomcat by
> creating a global environment variable (because tomcat runs as a
> service)
> 
> JAVA_OPTS=-Xmx512M
> 
> Which doesnt seem to have made a difference. Is this the best way to
> increaqte the memory available to an application? Is my syntax wrong?
> Are there other options I can set that will help?
> 
> The weird thing is that when I look at the memory usage of Tomcat.exe,
> the most memory it has used is 110,000
> 
> there seems to be no pattern to the memory errors (as usual) and it
> happens a lot when compiling JSP files.
> 
> The system memory seems high, but not horribly so. I see the following
> in Task Manager
> 
> MEM Usage = 885,000 (varies)
> 
> Commit Charge:
> Limit : 2,522,244
> Peak : 958,260
> 
> Anyone?
> 
> Thanks!
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27)

2005-01-06 Thread Dale, Matt
It could also be that the Permanent Generation has filled up, look up the docs 
on how to increase that or start with -XX:MaxPermSize=128M

-Original Message-
From: SANTOS, DANIEL (SBCSI) [mailto:[EMAIL PROTECTED]
Sent: 06 January 2005 14:57
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Out of Memory when compiling JSP (Struts app on Tomcat
4.1.27)


Chachany,

It sounds like it's using the default of -Xmx64m.  Probably the best way
to troubleshoot out or memory errors is to see what is really happening
with garbage collecting, the same way that you tune it.  If you can add
these options, then the JVM will spit out all kinds of useful
information:

-XX:+PrintTenuringDistribution -XX:+PrintGCDetails -Xverbosegc

But it sounds like the problem is that it's not getting the options.
What you really need to figure out is exactly how the service is getting
started.  For instance, if it's calling tomcat.exe then I don't believe
that the JAVA_OPTS environment variable is ever looked at since that is
in the startup.sh and startup.bat files (I'm not 100% certain about that
however).

Find out how it's starting.  Also, post the version of Java you are
using (since the options I gave you above don't work on all versions, I
think 1.4 and up or 1.3 and up).  But the -Xverbosegc works all the way
back to 1.1 if I'm correct.

Daniel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 06, 2005 8:25 AM
To: tomcat-user@jakarta.apache.org
Subject: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27)


Hi all

I'm working on an application currently that is experiencing some
intermittent memory problems when installed onto our "integration
test" server, but not on the development staff's local laptops.

I have attempted to increase the maximum memory available to Tomcat by
creating a global environment variable (because tomcat runs as a
service)

JAVA_OPTS=-Xmx512M

Which doesnt seem to have made a difference. Is this the best way to
increaqte the memory available to an application? Is my syntax wrong?
Are there other options I can set that will help?

The weird thing is that when I look at the memory usage of Tomcat.exe,
the most memory it has used is 110,000

there seems to be no pattern to the memory errors (as usual) and it
happens a lot when compiling JSP files.

The system memory seems high, but not horribly so. I see the following
in Task Manager

MEM Usage = 885,000 (varies)

Commit Charge:
Limit : 2,522,244
Peak : 958,260

Anyone?

Thanks!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27)

2005-01-06 Thread SANTOS, DANIEL \(SBCSI\)
Chachany,

It sounds like it's using the default of -Xmx64m.  Probably the best way
to troubleshoot out or memory errors is to see what is really happening
with garbage collecting, the same way that you tune it.  If you can add
these options, then the JVM will spit out all kinds of useful
information:

-XX:+PrintTenuringDistribution -XX:+PrintGCDetails -Xverbosegc

But it sounds like the problem is that it's not getting the options.
What you really need to figure out is exactly how the service is getting
started.  For instance, if it's calling tomcat.exe then I don't believe
that the JAVA_OPTS environment variable is ever looked at since that is
in the startup.sh and startup.bat files (I'm not 100% certain about that
however).

Find out how it's starting.  Also, post the version of Java you are
using (since the options I gave you above don't work on all versions, I
think 1.4 and up or 1.3 and up).  But the -Xverbosegc works all the way
back to 1.1 if I'm correct.

Daniel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 06, 2005 8:25 AM
To: tomcat-user@jakarta.apache.org
Subject: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27)


Hi all

I'm working on an application currently that is experiencing some
intermittent memory problems when installed onto our "integration
test" server, but not on the development staff's local laptops.

I have attempted to increase the maximum memory available to Tomcat by
creating a global environment variable (because tomcat runs as a
service)

JAVA_OPTS=-Xmx512M

Which doesnt seem to have made a difference. Is this the best way to
increaqte the memory available to an application? Is my syntax wrong?
Are there other options I can set that will help?

The weird thing is that when I look at the memory usage of Tomcat.exe,
the most memory it has used is 110,000

there seems to be no pattern to the memory errors (as usual) and it
happens a lot when compiling JSP files.

The system memory seems high, but not horribly so. I see the following
in Task Manager

MEM Usage = 885,000 (varies)

Commit Charge:
Limit : 2,522,244
Peak : 958,260

Anyone?

Thanks!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of Memory when compiling JSP (Struts app on Tomcat 4.1.27)

2005-01-06 Thread Allistair Crossley
is tomcat restarting the web application when you compile these jsps?

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 06 January 2005 14:25
> To: tomcat-user@jakarta.apache.org
> Subject: Out of Memory when compiling JSP (Struts app on 
> Tomcat 4.1.27)
> 
> 
> Hi all
> 
> I'm working on an application currently that is experiencing some
> intermittent memory problems when installed onto our "integration
> test" server, but not on the development staff's local laptops.
> 
> I have attempted to increase the maximum memory available to Tomcat by
> creating a global environment variable (because tomcat runs as a
> service)
> 
> JAVA_OPTS=-Xmx512M
> 
> Which doesnt seem to have made a difference. Is this the best way to
> increaqte the memory available to an application? Is my syntax wrong?
> Are there other options I can set that will help?
> 
> The weird thing is that when I look at the memory usage of Tomcat.exe,
> the most memory it has used is 110,000
> 
> there seems to be no pattern to the memory errors (as usual) and it
> happens a lot when compiling JSP files.
> 
> The system memory seems high, but not horribly so. I see the following
> in Task Manager
> 
> MEM Usage = 885,000 (varies)
> 
> Commit Charge:
> Limit : 2,522,244
> Peak : 958,260
> 
> Anyone?
> 
> Thanks!
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>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]



RE: Out of Memory Issues and Potential Fix

2004-12-10 Thread Shapira, Yoav

Hi,

>1) If you have a large scale web application with many JSP files, or an
>application that will generate a large amount of reflective objects (if
it
>is using Hibernate for example), the default Permanent Generation and
Max
>Permanent Generation settings on the JVM are not sufficient.  By
default
>these are 64 megabytes if you use the "-server" option for the JVM.  In
our
>own app, however, when all JSPs are compiled and loaded into memory,
>including the tremendous number of classes we have, our Permanent
>Generation stands around 150 megabytes!  Setting -XX:+PermSize and
>-XX:+MaxPermSize to around 200 megabytes solved this particular issue;
if

Nice.

>2) We were caching a large amount of search objects in each user's
session
>objects; some of this data wasn't being let go fast enough, causing OOM
>issues.  While we probably need to refactor this portion of our system
>using WeakReferences or something similar, we found a temporary
workaround
>by setting session-timeout to 1 minute in tomcat/conf/web.xml; this
will

Not so nice, but you've already pointed out a refactoring is in order.

>http://codinginparadise.org/images/outofmemory.png
>
>If you look at that graph, you will see that our Permanent, Old, and
Eden
>spaces have more than enough memory.  Are we running out of file or
thread
>descriptors? Is it something outside of the JVM?

I think you're on the right track.  Use the ulimit command or its
equivalent on your system to bump up file descriptors and thread counts
allowed for your user.  This OOME is not caused by missing space in any
of the JVM's memory areas.

Yoav Shapira http://www.yoavshapira.com




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Out of Memory Issues and Potential Fix

2004-12-10 Thread Brad Neuberg
Forgot to mention that we are using Sun's JVM 1.4.2_06 on Linux (Debian 
3.0r2, Kernel 2.6.4, i686 with NPTL threads enabled) using a Xeon system.

At 11:18 AM 12/10/2004, Brad Neuberg wrote:
Hi everyone.  Over at the company I work for, Rojo, we've been having a 
variety of Out of Memory (OOM) issues.  We have found some fixes that 
might be useful for other developers; at the same time we are still 
struggling with some classes of OOM issues as well.

We've had several different OOM errors that are unrelated:
1) If you have a large scale web application with many JSP files, or an 
application that will generate a large amount of reflective objects (if it 
is using Hibernate for example), the default Permanent Generation and Max 
Permanent Generation settings on the JVM are not sufficient.  By default 
these are 64 megabytes if you use the "-server" option for the JVM.  In 
our own app, however, when all JSPs are compiled and loaded into memory, 
including the tremendous number of classes we have, our Permanent 
Generation stands around 150 megabytes!  Setting -XX:+PermSize and 
-XX:+MaxPermSize to around 200 megabytes solved this particular issue; if 
you are getting out of memory issues with your application and you already 
have a large heap size that is not filling up then this might help you as 
well.  We also now precompile our JSPs which helps a bit as well.
2) We were caching a large amount of search objects in each user's session 
objects; some of this data wasn't being let go fast enough, causing OOM 
issues.  While we probably need to refactor this portion of our system 
using WeakReferences or something similar, we found a temporary workaround 
by setting session-timeout to 1 minute in tomcat/conf/web.xml; this will 
invalidate the user's session every minute.  We don't force our users to 
sign back in because we store cookies with user information sufficient to 
transparently sign the user back in that get sent with each request.  This 
is obviously a temporary hack and we need to solve our underlying data 
caching issues.

Our final OOM issue is the following.  We still get OOM issues with the 
above fixes in.  I have set up VisualGC to get an understanding of how 
memory is partitioned in the heap.  I have a screenshot of our VisualGC 
heap usage right after the OOM; I have put it on my webserver at:

http://codinginparadise.org/images/outofmemory.png
If you look at that graph, you will see that our Permanent, Old, and Eden 
spaces have more than enough memory.  Are we running out of file or thread 
descriptors? Is it something outside of the JVM?

Brad
Brad Neuberg, [EMAIL PROTECTED]
Senior Software Engineer, Rojo Networks
Weblog: http://www.codinginparadise.org
=
Check out Rojo, an RSS and Atom news aggregator that I work on.  Visit 
http://rojo.com for more info. Feel free to ask me for an invite!

Rojo is Hiring!  If you're interested in RSS, Weblogs, Social Networking, 
Java, Open Source, etc... then come work with us at Rojo.  If you 
recommend someone and we hire them you'll get a free iPod!  See 
http://www.rojonetworks.com/JobsAtRojo.html.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Brad Neuberg, [EMAIL PROTECTED]
Senior Software Engineer, Rojo Networks
Weblog: http://www.codinginparadise.org
=
Check out Rojo, an RSS and Atom news aggregator that I work on.  Visit 
http://rojo.com for more info. Feel free to ask me for an invite!

Rojo is Hiring!  If you're interested in RSS, Weblogs, Social Networking, 
Java, Open Source, etc... then come work with us at Rojo.  If you recommend 
someone and we hire them you'll get a free iPod!  See 
http://www.rojonetworks.com/JobsAtRojo.html. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Out of memory exception in Tomcat 4.0.4

2004-08-09 Thread Shapira, Yoav

Hola,

>- Root Cause -
>java.lang.OutOfMemoryError

>Is getting more memory for this machine is my only option?
>Is playing around with -X?? options of Java will help me, Solaris is
>supposed
>to do good job of handeling virtual memory. Or is it aleak some where
in
>
>Java/Tomcat.
>
>I did my home work and searched the archive and found similar issues
but
>for Windows, so it have difference solution/reasons.

If you did your homework, then you'd know the solution to
OutOfMemoryErrors is specific to your web application and your server
configuration.  You may have a leak, or you may not, and no one but you
can tell for sure: get a profiler and use it.  You may obtain better
performance by tuning the JVM's garbage collection (using the variety of
applicable -X runtime options), and you may not, especially if you have
a serious leak.  And adding memory can't hurt that much, but may not be
required: again you must test it yourself.  There are no shortcuts for
OOMEs that lead to sustainable long-term solutions.

Of course, right after I post this someone will probably say blindly
"just set -Xmx1536m and you'll be fine" ;)

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: out of memory, GC doesn't cleaning up

2004-07-14 Thread Robert Bateman
NOT a direct answer to your question...

The IBM Developer Works site has a wonderful set of tutorials on GC and Java.  
They can be found at 
http://www-106.ibm.com/developerworks/views/java/articles.jsp?sort_order=desc&expand=&sort_by=Date&show_abstract=true&view_by=Search&search_by=performance%3A
  
They are written by the folks over at JavaPerformanceTuning.com (another 
wonderful site by the way.)

To date, I've only read 3 of the GC articles but I've already learned a LOT.

Hope this helps!

Bob


On Wednesday 14 July 2004 09:43 am, Futchi wrote:
> Hi all,
> I am running an app. with several threads running in the
> background; these threads are simply loading data into the servlet
> context, and writing files out streams.
>
> A thread updating 5 parameters in the servlet context
> A thread writing each of these parameters to a new file
>
> Both threads sleeps for only 1 second.
>
> In each cycle I am closing and flushing the out streams, and assign null
> to all objects
>
> While monitoring the memory usage, I can see it just increasing, until
> the JVM reach the max size of the memory
>
>
> Catalina.bat JAVA_OPTS
>
> set JAVA_OPTS=-server -Xms256m -Xmx256m -XX:NewSize=64m
> -XX:MaxNewSize=128m -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=5
> -XX:TargetSurvivorRatio=75 -XX:PermSize=32m -XX:MaxPermSize=32m -Xss128k
> -XX:+DisableExplicitGC -verbose:gc
>
>
> I searched java.sun.com but did not find any indication or help docs to
> this error, please help


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: out of memory, GC doesn't cleaning up

2004-07-14 Thread Shapira, Yoav

Hi,
Use a Profiler to see what objects keep references to data you think
should be garbage-collected.

I'd also suggest scrapping most your extensive memory tuning settings
for now, unless you're absolutely sure they're perfect.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Futchi [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, July 14, 2004 9:44 AM
>To: Tomcat Users List
>Subject: out of memory, GC doesn't cleaning up
>
>Hi all,
>I am running an app. with several threads running in the
>background; these threads are simply loading data into the servlet
>context, and writing files out streams.
>
>A thread updating 5 parameters in the servlet context
>A thread writing each of these parameters to a new file
>
>Both threads sleeps for only 1 second.
>
>In each cycle I am closing and flushing the out streams, and assign
null
>to all objects
>
>While monitoring the memory usage, I can see it just increasing, until
>the JVM reach the max size of the memory
>
>
>Catalina.bat JAVA_OPTS
>
>set JAVA_OPTS=-server -Xms256m -Xmx256m -XX:NewSize=64m
>-XX:MaxNewSize=128m -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=5
>-XX:TargetSurvivorRatio=75 -XX:PermSize=32m -XX:MaxPermSize=32m
-Xss128k
>-XX:+DisableExplicitGC -verbose:gc
>
>
>I searched java.sun.com but did not find any indication or help docs to
>this error, please help
>
>
>



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of memory

2004-03-25 Thread Shapira, Yoav

Hi,
Sure: set -Xmx higher in $CATALINA_HOME/bin/catalina.sh ;)  See the doc
for JAVA_OPTS in that file for details.

You should investigate what's taking up your system resources by using a
profiler.

Yoav Shapira
Millennium Research Informatics


>-Original Message-
>From: Salvatierra, Mauricio h (M.H.) [mailto:[EMAIL PROTECTED]
>Sent: Thursday, March 25, 2004 8:54 AM
>To: 'Tomcat Users List'
>Subject: Out of memory
>
>Hi people. I new in this list and sorry my english. My problem is..
>
>"... Unable to compile class for JSP ... The system is out of
resources"
>
>Somebody has any idea. Thanks.
>
>   Saludos !!
>   SALVATIERRA, Mauricio Hugo
>   Information Technology
>   Ford Argentina S.C.A.
>   Phono/Fax: 54-11-4756-8750
>   mailto: [EMAIL PROTECTED]
>Visit our page: http//www.ford.com.ar/
>
>***

>*
>STRICTLY CONFIDENTIAL. The contents of this e-mail and any attachments
are
>strictly confidential and property of Ford Argentina S.C.A. They may
not be
>used or disclosed by someone who is not a named recipient. If you have
>received this e-mail in error please notify the sender by replying to
this
>email inserting the word "Misdirected" as the message and delete the
>present message.
>***

>*
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Out of memory -Tomcat4.x

2004-03-18 Thread Joseph Shraibman
Put this in catalina.sh:

CATALINA_OPTS="$CATALINA_OPTS -Xmx512M";

armalai wrote:
Hi.,
   I'm getting out of memory Error.
How do i know the current jvm memory?
I know the hardware memory details?
Please advise me which one is causing this error and how do i know the current 
settings?
Thanks.,
MALAI


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: out of memory problem. Help!

2004-01-21 Thread Cox, Charlie
Try this in your jk2.properties file and see if it fixes it for 4.1.29.
According to Bill Barker(thread: "maxProcessors vs maxThreads"), this is the
same as the 5.x connector setting for jk2.

container.maxThreads=
container.maxSpareThreads=
container.minSpareThreads=

Unfortunately I do not have time to mess with this right now, but I am
interested to know if it fixes the leak.

Charlie

> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of David Strupl
> Sent: Monday, January 19, 2004 2:08 PM
> To: [EMAIL PROTECTED]
> Subject: Re: out of memory problem. Help!
> 
> This did not work for me in 4.1.29 since the only way to do this is to
> set minProcessors==maxProcessors but that did not have any effect in
> 4.1.29. I am not sure whether I could use xxxThreads there but
> downgrading to 4.1.27 did help.
> 
> For those using 5.0.16 this can help - Filip thanks for finding out.
> 
> Best,
> 
> David
> 
> Filip Hanik wrote:
> > set maxSpareThreads=minSpareThreads=maxThreads will cause the system to
> > never shrink the pool
> >
> > Filip
> >
> > -Original Message-
> > From: news [mailto:[EMAIL PROTECTED] Behalf Of David Strupl
> > Sent: Monday, January 19, 2004 9:58 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: out of memory problem. Help!
> >
> >
> > Remy Maucherat wrote:
> >
> >>This is not true: there's indeed a memory leak with 5.0.16, but it would
> >>occur only with specific traffic patterns. It will not bring a server
> >>down in just a few requests.
> >
> >
> > Indeed. The thread pool has to grow and shrink for this to happen.
> > Unfortunatelly quite common e.g. day and night traffic.
> >
> > D.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


Re: out of memory problem. Help!

2004-01-19 Thread David Strupl
This did not work for me in 4.1.29 since the only way to do this is to 
set minProcessors==maxProcessors but that did not have any effect in 
4.1.29. I am not sure whether I could use xxxThreads there but 
downgrading to 4.1.27 did help.

For those using 5.0.16 this can help - Filip thanks for finding out.

Best,

David

Filip Hanik wrote:
set maxSpareThreads=minSpareThreads=maxThreads will cause the system to
never shrink the pool
Filip

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of David Strupl
Sent: Monday, January 19, 2004 9:58 AM
To: [EMAIL PROTECTED]
Subject: Re: out of memory problem. Help!
Remy Maucherat wrote:

This is not true: there's indeed a memory leak with 5.0.16, but it would
occur only with specific traffic patterns. It will not bring a server
down in just a few requests.


Indeed. The thread pool has to grow and shrink for this to happen.
Unfortunatelly quite common e.g. day and night traffic.
D.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: out of memory problem. Help!

2004-01-19 Thread Filip Hanik
set maxSpareThreads=minSpareThreads=maxThreads will cause the system to
never shrink the pool

Filip

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of David Strupl
Sent: Monday, January 19, 2004 9:58 AM
To: [EMAIL PROTECTED]
Subject: Re: out of memory problem. Help!


Remy Maucherat wrote:
> This is not true: there's indeed a memory leak with 5.0.16, but it would
> occur only with specific traffic patterns. It will not bring a server
> down in just a few requests.

Indeed. The thread pool has to grow and shrink for this to happen.
Unfortunatelly quite common e.g. day and night traffic.

D.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: out of memory problem. Help!

2004-01-19 Thread David Strupl
Remy Maucherat wrote:
This is not true: there's indeed a memory leak with 5.0.16, but it would
occur only with specific traffic patterns. It will not bring a server
down in just a few requests.
Indeed. The thread pool has to grow and shrink for this to happen. 
Unfortunatelly quite common e.g. day and night traffic.

D.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: out of memory problem. Help!

2004-01-19 Thread Remy Maucherat
Allistair Crossley wrote:

This is very interesting to hear. I can believe it too...we lose
between 400K and 5MB per request and Tomcat 5.0.16 bombs out at 155.
We have invested in JProfiler now to see why but your comment is
curious. Are you on the development team? When will 5.0.18 become
stable...does not seem to be a binary download yet
I suggest you continue investigating with your profiler: you have a 
different problem.

-Original Message- From: David Strupl
[mailto:[EMAIL PROTECTED] Sent: 19 January 2004 17:00 To:
[EMAIL PROTECTED] Subject: Re: out of memory problem.
Help!
If you use tomcat 5.0.x upgrade to 5.0.18. If you use 4.1.x downgrade
to 4.1.27. There is a significant memory leak in tomcat in 5.0.16,
4.1.28(29).
This is not true: there's indeed a memory leak with 5.0.16, but it would
occur only with specific traffic patterns. It will not bring a server
down in just a few requests.
--
x
Rémy Maucherat
Senior Developer & Consultant
JBoss Group (Europe) SàRL
x
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: out of memory problem. Help!

2004-01-19 Thread David Strupl
I am not on the developer team. But spent quite a lot of hours (days) 
latelly with figuring out why my copy of tomcat (4.1.29) leaks memory. 
The information bellow is based on the info from the dev mailing list + 
a thread on this mailing list with subject "Tomcat Tuning Memory leak" 
from last couple of days (weeks). I am still testing 4.1.27 and all 
seems fine so far. Re 5.0.18: thats a revision where the fix was 
commited - please check the dev mailing list with subject "Found it - 
WAS: Memory leak" and "RE: [5.0.18] Build available".

Hope this helps,

David

Allistair Crossley wrote:
This is very interesting to hear. I can believe it too...we lose
between 400K and 5MB per request and Tomcat 5.0.16 bombs out at 155.
We have invested in JProfiler now to see why but your comment is
curious. Are you on the development team? When will 5.0.18 become
stable...does not seem to be a binary download yet
Cheers ADC

-Original Message- From: David Strupl
[mailto:[EMAIL PROTECTED] Sent: 19 January 2004 17:00 To:
[EMAIL PROTECTED] Subject: Re: out of memory problem.
Help!
If you use tomcat 5.0.x upgrade to 5.0.18. If you use 4.1.x downgrade
to 4.1.27. There is a significant memory leak in tomcat in 5.0.16,
4.1.28(29).
Hope this helps,

David

Christian Witucki wrote:

We fixed our session timeout to 15 minutes for 100 users and Tomcat
 hasn't crashed for 36 hours.  Does anyone know how we can adjust
for the possibilities of 1000's of users???
Christian Witucki Network Analyst 375 Essjay Road Williamsville, NY
 14221 716-631-3001 x3812
CONFIDENTIALITY NOTICE. This e-mail and attachments, if any, may 
contain confidential information which is privileged and protected 
from disclosure by Federal and State confidentiality laws, rules or
 regulations.  This e-mail and attachments, if any, are intended
for the designated addressee only .  If you are not the designated 
addressee, you are hereby notified that any disclosure, copying, or
 distribution of this e-mail and its attachments, if any, may be 
unlawful and may subject you to legal consequences.  If you have 
received this e-mail and attachments in error, please contact 
Independent Health immediately at (716) 631-3001 and delete the 
e-mail and its attachments from your computer.  Thank you for your 
attention.



[EMAIL PROTECTED] 01/19/04 01:20AM >>>


Check session-timeout in web.xml. -1 is never timeout 
-1

-Original Message- From: Christophe Andreoli 
[mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 9:19 PM To:
 Tomcat Users List Subject: Re: out of memory problem. Help!

"Shapira, Yoav" wrote:


Howdy,



root cause

java.lang.OutOfMemoryError

It happens When the corresponding request returns more than
2-3


rows from the database, not every time





Perhaps you should allocate your JVM more memory, by using the
Java
-Xmx


parameter.


I did it and I gave 512 Mb.

It works better but why are the 2000 objects are not garbaged after
 each request ?






Alternatively, consider a system design that retrieves a


smaller, fixed number of rows instead of "2-3" and lets
the
user


scroll, say 100 rows at a time.

Yoav Shapira



-
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail:
[EMAIL PROTECTED]




-
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED]



 
--- QAS Ltd. 
Developers of QuickAddress Software 
href="http://www.qas.com";>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]


RE: out of memory problem. Help!

2004-01-19 Thread Allistair Crossley
This is very interesting to hear. I can believe it too...we lose between 400K and 5MB 
per request and Tomcat 5.0.16 bombs out at 155.

We have invested in JProfiler now to see why but your comment is curious. Are you on 
the development team? When will 5.0.18 become stable...does not seem to be a binary 
download yet

Cheers ADC


-Original Message-
From: David Strupl [mailto:[EMAIL PROTECTED]
Sent: 19 January 2004 17:00
To: [EMAIL PROTECTED]
Subject: Re: out of memory problem. Help!


If you use tomcat 5.0.x upgrade to 5.0.18. If you use 4.1.x downgrade to 
4.1.27. There is a significant memory leak in tomcat in 5.0.16, 4.1.28(29).

Hope this helps,

David

Christian Witucki wrote:
> We fixed our session timeout to 15 minutes for 100 users and Tomcat
> hasn't crashed for 36 hours.  Does anyone know how we can adjust for
> the possibilities of 1000's of users???
> 
> Christian Witucki Network Analyst 375 Essjay Road Williamsville, NY
> 14221 716-631-3001 x3812
> 
> CONFIDENTIALITY NOTICE. This e-mail and attachments, if any, may
> contain confidential information which is privileged and protected
> from disclosure by Federal and State confidentiality laws, rules or
> regulations.  This e-mail and attachments, if any, are intended for
> the designated addressee only .  If you are not the designated
> addressee, you are hereby notified that any disclosure, copying, or
> distribution of this e-mail and its attachments, if any, may be
> unlawful and may subject you to legal consequences.  If you have
> received this e-mail and attachments in error, please contact
> Independent Health immediately at (716) 631-3001 and delete the
> e-mail and its attachments from your computer.  Thank you for your
> attention.
> 
> 
>>>> [EMAIL PROTECTED] 01/19/04 01:20AM >>>
> 
> 
> Check session-timeout in web.xml. -1 is never timeout 
> -1
> 
> -Original Message- From: Christophe Andreoli
> [mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 9:19 PM To:
> Tomcat Users List Subject: Re: out of memory problem. Help!
> 
> "Shapira, Yoav" wrote:
> 
>> Howdy,
>> 
>> 
>>> root cause
>>> 
>>> java.lang.OutOfMemoryError
>>> 
>>> 
>>> It happens When the corresponding request returns more than
> 
> 2-3
> 
>>> rows from the database, not every time
> 
> 
> 
> 
> 
>> Perhaps you should allocate your JVM more memory, by using the Java
>> 
> 
> -Xmx
> 
>> parameter.
> 
> 
> I did it and I gave 512 Mb.
> 
> It works better but why are the 2000 objects are not garbaged after
> each request ?
> 
> 
> 
> 
> 
> 
> 
> 
> Alternatively, consider a system design that retrieves a
> 
>> smaller, fixed number of rows instead of "2-3" and lets the
>> 
> 
> user
> 
>> scroll, say 100 rows at a time.
>> 
>> Yoav Shapira
>> 
> 
> 
> -
>  To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>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]



Re: out of memory problem. Help!

2004-01-19 Thread David Strupl
If you use tomcat 5.0.x upgrade to 5.0.18. If you use 4.1.x downgrade to 
4.1.27. There is a significant memory leak in tomcat in 5.0.16, 4.1.28(29).

Hope this helps,

David

Christian Witucki wrote:
We fixed our session timeout to 15 minutes for 100 users and Tomcat
hasn't crashed for 36 hours.  Does anyone know how we can adjust for
the possibilities of 1000's of users???
Christian Witucki Network Analyst 375 Essjay Road Williamsville, NY
14221 716-631-3001 x3812
CONFIDENTIALITY NOTICE. This e-mail and attachments, if any, may
contain confidential information which is privileged and protected
from disclosure by Federal and State confidentiality laws, rules or
regulations.  This e-mail and attachments, if any, are intended for
the designated addressee only .  If you are not the designated
addressee, you are hereby notified that any disclosure, copying, or
distribution of this e-mail and its attachments, if any, may be
unlawful and may subject you to legal consequences.  If you have
received this e-mail and attachments in error, please contact
Independent Health immediately at (716) 631-3001 and delete the
e-mail and its attachments from your computer.  Thank you for your
attention.

[EMAIL PROTECTED] 01/19/04 01:20AM >>>


Check session-timeout in web.xml. -1 is never timeout 
-1

-Original Message- From: Christophe Andreoli
[mailto:[EMAIL PROTECTED] Sent: Friday, January 16, 2004 9:19 PM To:
Tomcat Users List Subject: Re: out of memory problem. Help!
"Shapira, Yoav" wrote:

Howdy,


root cause

java.lang.OutOfMemoryError

It happens When the corresponding request returns more than
2-3

rows from the database, not every time





Perhaps you should allocate your JVM more memory, by using the Java

-Xmx

parameter.


I did it and I gave 512 Mb.

It works better but why are the 2000 objects are not garbaged after
each request ?






Alternatively, consider a system design that retrieves a

smaller, fixed number of rows instead of "2-3" and lets the

user

scroll, say 100 rows at a time.

Yoav Shapira



-
 To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: out of memory problem. Help!

2004-01-19 Thread Christian Witucki
We fixed our session timeout to 15 minutes for 100 users and Tomcat hasn't crashed for 
36 hours.  Does anyone know how we can adjust for the possibilities of 1000's of 
users???

Christian Witucki
Network Analyst
375 Essjay Road
Williamsville, NY 14221
716-631-3001 x3812

CONFIDENTIALITY NOTICE. This e-mail and attachments, if any, may contain confidential 
information which is privileged and protected from disclosure by Federal and State 
confidentiality laws, rules or regulations.  This e-mail and attachments, if any, are 
intended for the designated addressee only .  If you are not the designated addressee, 
you are hereby notified that any disclosure, copying, or distribution of this e-mail 
and its attachments, if any, may be unlawful and may subject you to legal 
consequences.  If you have received this e-mail and attachments in error, please 
contact Independent Health immediately at (716) 631-3001 and delete the e-mail and its 
attachments from your computer.  Thank you for your attention.

>>> [EMAIL PROTECTED] 01/19/04 01:20AM >>>

Check session-timeout in web.xml.
-1 is never timeout
-1

-Original Message-
From: Christophe Andreoli [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 9:19 PM
To: Tomcat Users List
Subject: Re: out of memory problem. Help!

"Shapira, Yoav" wrote:
> 
> Howdy,
> 
> >root cause
> >
> >java.lang.OutOfMemoryError
> >
> >
> >It happens When the corresponding request returns more than
2-3
> >rows from the database, not every time


 
> Perhaps you should allocate your JVM more memory, by using the Java
-Xmx
> parameter. 

I did it and I gave 512 Mb.

It works better but why are the 2000 objects are not garbaged after each
request ?








 Alternatively, consider a system design that retrieves a
> smaller, fixed number of rows instead of "2-3" and lets the
user
> scroll, say 100 rows at a time.
> 
> Yoav Shapira
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: out of memory problem. Help!

2004-01-18 Thread Sanjeev Kumar

Check session-timeout in web.xml.
-1 is never timeout
-1

-Original Message-
From: Christophe Andreoli [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 16, 2004 9:19 PM
To: Tomcat Users List
Subject: Re: out of memory problem. Help!

"Shapira, Yoav" wrote:
> 
> Howdy,
> 
> >root cause
> >
> >java.lang.OutOfMemoryError
> >
> >
> >It happens When the corresponding request returns more than
2-3
> >rows from the database, not every time


 
> Perhaps you should allocate your JVM more memory, by using the Java
-Xmx
> parameter. 

I did it and I gave 512 Mb.

It works better but why are the 2000 objects are not garbaged after each
request ?








 Alternatively, consider a system design that retrieves a
> smaller, fixed number of rows instead of "2-3" and lets the
user
> scroll, say 100 rows at a time.
> 
> Yoav Shapira
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: out of memory problem. Help!

2004-01-16 Thread Shapira, Yoav

Howdy,

>It works better but why are the 2000 objects are not garbaged after
each
>request ?

There's only one reason objects aren't garbage-collected in java: other
objects are keeping references to them.  You can inspect or profile your
code to see what keeps references to what.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: out of memory problem. Help!

2004-01-16 Thread Christophe Andreoli
"Shapira, Yoav" wrote:
> 
> Howdy,
> 
> >root cause
> >
> >java.lang.OutOfMemoryError
> >
> >
> >It happens When the corresponding request returns more than 2-3
> >rows from the database, not every time


 
> Perhaps you should allocate your JVM more memory, by using the Java -Xmx
> parameter. 

I did it and I gave 512 Mb.

It works better but why are the 2000 objects are not garbaged after each
request ?








 Alternatively, consider a system design that retrieves a
> smaller, fixed number of rows instead of "2-3" and lets the user
> scroll, say 100 rows at a time.
> 
> Yoav Shapira
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: out of memory problem. Help!

2004-01-16 Thread Shapira, Yoav

Howdy,

>root cause
>
>java.lang.OutOfMemoryError
>
>
>It happens When the corresponding request returns more than 2-3
>rows from the database, not every time

Perhaps you should allocate your JVM more memory, by using the Java -Xmx
parameter.  Alternatively, consider a system design that retrieves a
smaller, fixed number of rows instead of "2-3" and lets the user
scroll, say 100 rows at a time.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: out of memory problem. Help!

2004-01-16 Thread Tim Funk
- Get more memory
- allocate more memory to the JVM 
(http://jakarta.apache.org/tomcat/faq/memory.html#adjust)
- Don't place 20,000 ros of data in memory
- Limit the size of your query

-Tim

Christophe Andreoli wrote:

Hello !

I have a Struts/jsp Application

Ich get an out of memory problem:javax.servlet.ServletException: Servlet
execution threw an exception
at 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Out of memory with multipart/form-data and lot of checkboxes

2003-10-27 Thread Zsolt Koppany
Chris,

I work with struts-1.1.

Zsolt

-Original Message-
From: Christopher Schultz [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 8:34 PM
To: Tomcat Users List
Subject: Re: Out of memory with multipart/form-data and lot of
checkboxes


Zsolt,
> in a form where the user can upload a file and set some attributes with
> checkbox (couple oh hundreds) I get an out of memory exception even when
the
> file is very small (300 bytes). After some testing I figured out that it
is
> caused by enctype="multipart/form-data". If I removed that I cannot upload
> (this is clear) but JVM doesn't increase.

How are you handling the file upload? There are several existing
multipart form handlers out there... did you roll your own?

-chris


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Out of memory with multipart/form-data and lot of checkboxes

2003-10-27 Thread Christopher Schultz
Zsolt,
in a form where the user can upload a file and set some attributes with
checkbox (couple oh hundreds) I get an out of memory exception even when the
file is very small (300 bytes). After some testing I figured out that it is
caused by enctype="multipart/form-data". If I removed that I cannot upload
(this is clear) but JVM doesn't increase.
How are you handling the file upload? There are several existing 
multipart form handlers out there... did you roll your own?

-chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Out of memory error

2003-04-02 Thread Januski, Ken
Thanks for the suggestion Yoav,

I do have AccessLogValve enabled but not reverse lookup. I've changed the
Tomcat memory settings in registry for the two services so will see if that
at helps the memory problem. But I'd still like to figure out why I'm
getting such aggressive logging!

As far as the 1.4.1 I'm glad I'm not using it. It's hard to believe that you
can't reuse StringBuffers.

Ken

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 9:14 AM
To: Tomcat Users List
Subject: RE: Out of memory error



Howdy,
Do you have the reverse lookup enabled in your AccessLogValve (if you
have the AccessLogValve enabled at all)?  It may be that someone just
left a System.out.println or a logger statement of a non-debug priority
in that part of the code ;) ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Januski, Ken [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 6:22 PM
>To: Tomcat Users List
>Subject: RE: Out of memory error
>
>Thanks Nikolaos,
>
>The multiple (100 per minute) mapping server lines occur before the out
of
>memory error. But I now see that I also get these on days when there is
no
>memory problem. So I guess they're unrelated. It just seems odd to see
so
>many of them.
>
>I'll try the -Xms and -Xmx solutions and see if that helps. As I said
it
>doesn't happen often but it would be nice to track down the cause (or
at
>least fix it so it doesn't recur).
>
>Ken
>
>-Original Message-
>From: Nikolaos Giannopoulos [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 6:07 PM
>To: Tomcat Users List
>Subject: RE: Out of memory error
>
>
>> -Original Message-
>> From: Januski, Ken [mailto:[EMAIL PROTECTED]
>>
>> But no one has answered my original question: Do the 100s of multiple
>> "mapping server nnn.nnn.nnn.nn" lines reflect another symptom or the
>> possible cause of the memory error? They just look odd to me and so I
>> wondered if they might be the cause of the problem.
>
>Once you hit an java.lang.OutOfMemoryError everything is in an
inconsistent
>state and I would not be surprised that you get lots of other error
>messages
>thereafter.
>
>The important question is are any of these messages appearing *before*
the
>initial out of memory error or *after* - if the're any before then I
would
>suggest investigating them otherwise I would guess that fixing your out
of
>memory error may fix your other error messages.
>
>--Nikolaos
>
>
>> -Original Message-
>> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, April 01, 2003 5:38 PM
>> To: Tomcat Users List
>> Subject: RE: Out of memory error
>>
>>
>>
>> could be because of this awful bug introduced in j2sdk1.4.1.  It
>> wasn't in
>> j2sdk1.4.0
>> http://developer.java.sun.com/developer/bugParade/bugs/4724129.html
>>
>> Jake
>>
>> At 04:16 PM 4/1/2003 -0600, you wrote:
>> >I had the same problem on Redhat 7.1. I tried using the -Xmx and
-Xms
>> >switches, but nothing seemed to help. I then switched to IBMJava2-14
and
>> >it solved the problem.
>> >
>> >Steve
>> >
>> >-Original Message-
>> >From: Darian Shimy [mailto:[EMAIL PROTECTED]
>> >Sent: Tuesday, April 01, 2003 1:16 PM
>> >To: 'Tomcat Users List'
>> >Subject: RE: Out of memory error
>> >
>> >
>> >Set the memory using -Xmx and -Xms.  This should take care of the
memory
>> >problems.
>> >
>> >If you want to monitor the heap usage, add -verbose:gc
>> >
>> >--
>> >Darian Shimy
>> >
>> > > -Original Message-
>> > > From: Januski, Ken [mailto:[EMAIL PROTECTED]
>> > > Sent: Monday, March 31, 2003 12:21 PM
>> > > To: Tomcat Users List
>> > > Subject: Out of memory error
>> > >
>> > >
>> > > Hi,
>> > >
>> > > Very occasionally my Tomcat server runs into out of memory
>> > > errors. I'ts not
>> > > a heavily used server, less than 10 users a day I'd guess on
>> > > an Intranet.
>> > > But every month or so it runs into memory problems. The
>> > > newest ones occurred
>> > > yesterday and I didn't hear about them until today. When I
>> > > investigated I
>> > > found hundreds of these lines repeating themselves in the
>> > > catalina log.
>> > >
>> > > 2003-03-30 22:38:07 

RE: Out of memory error

2003-04-02 Thread Filip Hanik
If you are using jdk1.4.1 you could be a victim of:
http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

> -Original Message-
> From: Januski, Ken [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 3:22 PM
> To: Tomcat Users List
> Subject: RE: Out of memory error
>
>
> Thanks Nikolaos,
>
> The multiple (100 per minute) mapping server lines occur before the out of
> memory error. But I now see that I also get these on days when there is no
> memory problem. So I guess they're unrelated. It just seems odd to see so
> many of them.
>
> I'll try the -Xms and -Xmx solutions and see if that helps. As I said it
> doesn't happen often but it would be nice to track down the cause (or at
> least fix it so it doesn't recur).
>
> Ken
>
> -Original Message-
> From: Nikolaos Giannopoulos [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 6:07 PM
> To: Tomcat Users List
> Subject: RE: Out of memory error
>
>
> > -Original Message-
> > From: Januski, Ken [mailto:[EMAIL PROTECTED]
> >
> > But no one has answered my original question: Do the 100s of multiple
> > "mapping server nnn.nnn.nnn.nn" lines reflect another symptom or the
> > possible cause of the memory error? They just look odd to me and so I
> > wondered if they might be the cause of the problem.
>
> Once you hit an java.lang.OutOfMemoryError everything is in an
> inconsistent
> state and I would not be surprised that you get lots of other
> error messages
> thereafter.
>
> The important question is are any of these messages appearing *before* the
> initial out of memory error or *after* - if the're any before then I would
> suggest investigating them otherwise I would guess that fixing your out of
> memory error may fix your other error messages.
>
> --Nikolaos
>
>
> > -Original Message-
> > From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, April 01, 2003 5:38 PM
> > To: Tomcat Users List
> > Subject: RE: Out of memory error
> >
> >
> >
> > could be because of this awful bug introduced in j2sdk1.4.1.  It
> > wasn't in
> > j2sdk1.4.0
> > http://developer.java.sun.com/developer/bugParade/bugs/4724129.html
> >
> > Jake
> >
> > At 04:16 PM 4/1/2003 -0600, you wrote:
> > >I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms
> > >switches, but nothing seemed to help. I then switched to
> IBMJava2-14 and
> > >it solved the problem.
> > >
> > >Steve
> > >
> > >-Original Message-
> > >From: Darian Shimy [mailto:[EMAIL PROTECTED]
> > >Sent: Tuesday, April 01, 2003 1:16 PM
> > >To: 'Tomcat Users List'
> > >Subject: RE: Out of memory error
> > >
> > >
> > >Set the memory using -Xmx and -Xms.  This should take care of
> the memory
> > >problems.
> > >
> > >If you want to monitor the heap usage, add -verbose:gc
> > >
> > >--
> > >Darian Shimy
> > >
> > > > -Original Message-
> > > > From: Januski, Ken [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, March 31, 2003 12:21 PM
> > > > To: Tomcat Users List
> > > > Subject: Out of memory error
> > > >
> > > >
> > > > Hi,
> > > >
> > > > Very occasionally my Tomcat server runs into out of memory
> > > > errors. I'ts not
> > > > a heavily used server, less than 10 users a day I'd guess on
> > > > an Intranet.
> > > > But every month or so it runs into memory problems. The
> > > > newest ones occurred
> > > > yesterday and I didn't hear about them until today. When I
> > > > investigated I
> > > > found hundreds of these lines repeating themselves in the
> > > > catalina log.
> > > >
> > > > 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> > > > 'nnn.nnn.nn.nn'
> > > >
> > > > They were eventually followed by this:
> > > >
> > > > 2003-03-30 22:38:08 HttpProcessor[80][1] process
> > > > java.lang.OutOfMemoryError
> > > >
> > > > Can anyone tell me whether the first lines indicate a cause
> > > > of the out of
> > > > memory error or whether they're just another symptom of
> running out of
> > > > memory?
> > > >
> > > > Thanks for any ideas,
&g

RE: Out of memory error

2003-04-02 Thread Shapira, Yoav

Howdy,

>(2) I think its silly that SUN has slated fixing this bug for 1.5 and
their
>workaround makes very little sense - Anyone know what the following
stated
>work around translates to in actual code?
>
>"Don't reuse StringBuffers. If you do reuse them, check their capacity
and
>make sure that you aren't making tiny Strings from huge StringBuffers"

It means use a StringBuffer just once.  To be safe, don't play with the
StringBuffer.clear() and don't keep references to StringBuffers after
you're done using them.  Construct a new StringBuffer every time you
need one.

>(3) Steve, last time I downloaded an IBM JRE (a real long time ago) it
was
>a real pain as it was (a) buried within many nested web pages and (b)
was
>part of a websphere download - Do you offhand have a direct link to
(just) >IBM's 1.4 JRE?

See http://www-106.ibm.com/developerworks/java/jdk/index.html
Note that this does not constitute an endorsement of the IBM JDK on my
part ;)  I don't particularly like their JDK.

Yoav Shapira
Millennium ChemInformatics



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of memory error

2003-04-02 Thread Shapira, Yoav

Howdy,
Do you have the reverse lookup enabled in your AccessLogValve (if you
have the AccessLogValve enabled at all)?  It may be that someone just
left a System.out.println or a logger statement of a non-debug priority
in that part of the code ;) ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Januski, Ken [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 6:22 PM
>To: Tomcat Users List
>Subject: RE: Out of memory error
>
>Thanks Nikolaos,
>
>The multiple (100 per minute) mapping server lines occur before the out
of
>memory error. But I now see that I also get these on days when there is
no
>memory problem. So I guess they're unrelated. It just seems odd to see
so
>many of them.
>
>I'll try the -Xms and -Xmx solutions and see if that helps. As I said
it
>doesn't happen often but it would be nice to track down the cause (or
at
>least fix it so it doesn't recur).
>
>Ken
>
>-Original Message-
>From: Nikolaos Giannopoulos [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 6:07 PM
>To: Tomcat Users List
>Subject: RE: Out of memory error
>
>
>> -Original Message-
>> From: Januski, Ken [mailto:[EMAIL PROTECTED]
>>
>> But no one has answered my original question: Do the 100s of multiple
>> "mapping server nnn.nnn.nnn.nn" lines reflect another symptom or the
>> possible cause of the memory error? They just look odd to me and so I
>> wondered if they might be the cause of the problem.
>
>Once you hit an java.lang.OutOfMemoryError everything is in an
inconsistent
>state and I would not be surprised that you get lots of other error
>messages
>thereafter.
>
>The important question is are any of these messages appearing *before*
the
>initial out of memory error or *after* - if the're any before then I
would
>suggest investigating them otherwise I would guess that fixing your out
of
>memory error may fix your other error messages.
>
>--Nikolaos
>
>
>> -Original Message-
>> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, April 01, 2003 5:38 PM
>> To: Tomcat Users List
>> Subject: RE: Out of memory error
>>
>>
>>
>> could be because of this awful bug introduced in j2sdk1.4.1.  It
>> wasn't in
>> j2sdk1.4.0
>> http://developer.java.sun.com/developer/bugParade/bugs/4724129.html
>>
>> Jake
>>
>> At 04:16 PM 4/1/2003 -0600, you wrote:
>> >I had the same problem on Redhat 7.1. I tried using the -Xmx and
-Xms
>> >switches, but nothing seemed to help. I then switched to IBMJava2-14
and
>> >it solved the problem.
>> >
>> >Steve
>> >
>> >-Original Message-
>> >From: Darian Shimy [mailto:[EMAIL PROTECTED]
>> >Sent: Tuesday, April 01, 2003 1:16 PM
>> >To: 'Tomcat Users List'
>> >Subject: RE: Out of memory error
>> >
>> >
>> >Set the memory using -Xmx and -Xms.  This should take care of the
memory
>> >problems.
>> >
>> >If you want to monitor the heap usage, add -verbose:gc
>> >
>> >--
>> >Darian Shimy
>> >
>> > > -Original Message-
>> > > From: Januski, Ken [mailto:[EMAIL PROTECTED]
>> > > Sent: Monday, March 31, 2003 12:21 PM
>> > > To: Tomcat Users List
>> > > Subject: Out of memory error
>> > >
>> > >
>> > > Hi,
>> > >
>> > > Very occasionally my Tomcat server runs into out of memory
>> > > errors. I'ts not
>> > > a heavily used server, less than 10 users a day I'd guess on
>> > > an Intranet.
>> > > But every month or so it runs into memory problems. The
>> > > newest ones occurred
>> > > yesterday and I didn't hear about them until today. When I
>> > > investigated I
>> > > found hundreds of these lines repeating themselves in the
>> > > catalina log.
>> > >
>> > > 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server
name
>> > > 'nnn.nnn.nn.nn'
>> > >
>> > > They were eventually followed by this:
>> > >
>> > > 2003-03-30 22:38:08 HttpProcessor[80][1] process
>> > > java.lang.OutOfMemoryError
>> > >
>> > > Can anyone tell me whether the first lines indicate a cause
>> > > of the out of
>> > > memory error or whether they're just another symptom of running
out
>of
>> > > memory?
>> > >
>> > > 

RE: Out of memory error

2003-04-01 Thread Goehring, Chuck Mr., RCI - San Diego


I just looked at this in Bug Parade.  They put out a J2SE Version 1.4.1_02 but the 
release notes don't mention this bug. The bug (4724129) is still listed as "In 
progress". I don't see a "Known problem" section of the release notes either.

This probably explains a bunch of problems reported recently on this list.



-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 2:38 PM
To: Tomcat Users List
Subject: RE: Out of memory error



could be because of this awful bug introduced in j2sdk1.4.1.  It wasn't in 
j2sdk1.4.0
http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

Jake

At 04:16 PM 4/1/2003 -0600, you wrote:
>I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms 
>switches, but nothing seemed to help. I then switched to IBMJava2-14 and 
>it solved the problem.
>
>Steve
>
>-Original Message-
>From: Darian Shimy [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 1:16 PM
>To: 'Tomcat Users List'
>Subject: RE: Out of memory error
>
>
>Set the memory using -Xmx and -Xms.  This should take care of the memory
>problems.
>
>If you want to monitor the heap usage, add -verbose:gc
>
>--
>Darian Shimy
>
> > -Original Message-
> > From: Januski, Ken [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 31, 2003 12:21 PM
> > To: Tomcat Users List
> > Subject: Out of memory error
> >
> >
> > Hi,
> >
> > Very occasionally my Tomcat server runs into out of memory
> > errors. I'ts not
> > a heavily used server, less than 10 users a day I'd guess on
> > an Intranet.
> > But every month or so it runs into memory problems. The
> > newest ones occurred
> > yesterday and I didn't hear about them until today. When I
> > investigated I
> > found hundreds of these lines repeating themselves in the
> > catalina log.
> >
> > 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> > 'nnn.nnn.nn.nn'
> >
> > They were eventually followed by this:
> >
> > 2003-03-30 22:38:08 HttpProcessor[80][1] process
> > java.lang.OutOfMemoryError
> >
> > Can anyone tell me whether the first lines indicate a cause
> > of the out of
> > memory error or whether they're just another symptom of running out of
> > memory?
> >
> > Thanks for any ideas,
> >
> > Ken
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of memory error

2003-04-01 Thread Jacob Kjome
Oh, definitely, yes.  If you haven't used the -Xmx option then you are 
limiting yourself to 64meg of memory maximum!  You can hit that pretty quickly.

Jake

At 06:22 PM 4/1/2003 -0500, you wrote:
Thanks Nikolaos,

The multiple (100 per minute) mapping server lines occur before the out of
memory error. But I now see that I also get these on days when there is no
memory problem. So I guess they're unrelated. It just seems odd to see so
many of them.
I'll try the -Xms and -Xmx solutions and see if that helps. As I said it
doesn't happen often but it would be nice to track down the cause (or at
least fix it so it doesn't recur).
Ken

-Original Message-
From: Nikolaos Giannopoulos [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 6:07 PM
To: Tomcat Users List
Subject: RE: Out of memory error
> -Original Message-
> From: Januski, Ken [mailto:[EMAIL PROTECTED]
>
> But no one has answered my original question: Do the 100s of multiple
> "mapping server nnn.nnn.nnn.nn" lines reflect another symptom or the
> possible cause of the memory error? They just look odd to me and so I
> wondered if they might be the cause of the problem.
Once you hit an java.lang.OutOfMemoryError everything is in an inconsistent
state and I would not be surprised that you get lots of other error messages
thereafter.
The important question is are any of these messages appearing *before* the
initial out of memory error or *after* - if the're any before then I would
suggest investigating them otherwise I would guess that fixing your out of
memory error may fix your other error messages.
--Nikolaos

> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 5:38 PM
> To: Tomcat Users List
> Subject: RE: Out of memory error
>
>
>
> could be because of this awful bug introduced in j2sdk1.4.1.  It
> wasn't in
> j2sdk1.4.0
> http://developer.java.sun.com/developer/bugParade/bugs/4724129.html
>
> Jake
>
> At 04:16 PM 4/1/2003 -0600, you wrote:
> >I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms
> >switches, but nothing seemed to help. I then switched to IBMJava2-14 and
> >it solved the problem.
> >
> >Steve
> >
> >-----Original Message-
> >From: Darian Shimy [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, April 01, 2003 1:16 PM
> >To: 'Tomcat Users List'
> >Subject: RE: Out of memory error
> >
> >
> >Set the memory using -Xmx and -Xms.  This should take care of the memory
> >problems.
> >
> >If you want to monitor the heap usage, add -verbose:gc
> >
> >--
> >Darian Shimy
> >
> > > -Original Message-
> > > From: Januski, Ken [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, March 31, 2003 12:21 PM
> > > To: Tomcat Users List
> > > Subject: Out of memory error
> > >
> > >
> > > Hi,
> > >
> > > Very occasionally my Tomcat server runs into out of memory
> > > errors. I'ts not
> > > a heavily used server, less than 10 users a day I'd guess on
> > > an Intranet.
> > > But every month or so it runs into memory problems. The
> > > newest ones occurred
> > > yesterday and I didn't hear about them until today. When I
> > > investigated I
> > > found hundreds of these lines repeating themselves in the
> > > catalina log.
> > >
> > > 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> > > 'nnn.nnn.nn.nn'
> > >
> > > They were eventually followed by this:
> > >
> > > 2003-03-30 22:38:08 HttpProcessor[80][1] process
> > > java.lang.OutOfMemoryError
> > >
> > > Can anyone tell me whether the first lines indicate a cause
> > > of the out of
> > > memory error or whether they're just another symptom of running out of
> > > memory?
> > >
> > > Thanks for any ideas,
> > >
> > > Ken
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Out of memory error

2003-04-01 Thread Januski, Ken
Thanks Nikolaos,

The multiple (100 per minute) mapping server lines occur before the out of
memory error. But I now see that I also get these on days when there is no
memory problem. So I guess they're unrelated. It just seems odd to see so
many of them.

I'll try the -Xms and -Xmx solutions and see if that helps. As I said it
doesn't happen often but it would be nice to track down the cause (or at
least fix it so it doesn't recur).

Ken

-Original Message-
From: Nikolaos Giannopoulos [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 6:07 PM
To: Tomcat Users List
Subject: RE: Out of memory error


> -Original Message-
> From: Januski, Ken [mailto:[EMAIL PROTECTED]
>
> But no one has answered my original question: Do the 100s of multiple
> "mapping server nnn.nnn.nnn.nn" lines reflect another symptom or the
> possible cause of the memory error? They just look odd to me and so I
> wondered if they might be the cause of the problem.

Once you hit an java.lang.OutOfMemoryError everything is in an inconsistent
state and I would not be surprised that you get lots of other error messages
thereafter.

The important question is are any of these messages appearing *before* the
initial out of memory error or *after* - if the're any before then I would
suggest investigating them otherwise I would guess that fixing your out of
memory error may fix your other error messages.

--Nikolaos


> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 5:38 PM
> To: Tomcat Users List
> Subject: RE: Out of memory error
>
>
>
> could be because of this awful bug introduced in j2sdk1.4.1.  It
> wasn't in
> j2sdk1.4.0
> http://developer.java.sun.com/developer/bugParade/bugs/4724129.html
>
> Jake
>
> At 04:16 PM 4/1/2003 -0600, you wrote:
> >I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms
> >switches, but nothing seemed to help. I then switched to IBMJava2-14 and
> >it solved the problem.
> >
> >Steve
> >
> >-Original Message-
> >From: Darian Shimy [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, April 01, 2003 1:16 PM
> >To: 'Tomcat Users List'
> >Subject: RE: Out of memory error
> >
> >
> >Set the memory using -Xmx and -Xms.  This should take care of the memory
> >problems.
> >
> >If you want to monitor the heap usage, add -verbose:gc
> >
> >--
> >Darian Shimy
> >
> > > -Original Message-
> > > From: Januski, Ken [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, March 31, 2003 12:21 PM
> > > To: Tomcat Users List
> > > Subject: Out of memory error
> > >
> > >
> > > Hi,
> > >
> > > Very occasionally my Tomcat server runs into out of memory
> > > errors. I'ts not
> > > a heavily used server, less than 10 users a day I'd guess on
> > > an Intranet.
> > > But every month or so it runs into memory problems. The
> > > newest ones occurred
> > > yesterday and I didn't hear about them until today. When I
> > > investigated I
> > > found hundreds of these lines repeating themselves in the
> > > catalina log.
> > >
> > > 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> > > 'nnn.nnn.nn.nn'
> > >
> > > They were eventually followed by this:
> > >
> > > 2003-03-30 22:38:08 HttpProcessor[80][1] process
> > > java.lang.OutOfMemoryError
> > >
> > > Can anyone tell me whether the first lines indicate a cause
> > > of the out of
> > > memory error or whether they're just another symptom of running out of
> > > memory?
> > >
> > > Thanks for any ideas,
> > >
> > > Ken
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of memory error

2003-04-01 Thread Nikolaos Giannopoulos
> -Original Message-
> From: Januski, Ken [mailto:[EMAIL PROTECTED]
>
> But no one has answered my original question: Do the 100s of multiple
> "mapping server nnn.nnn.nnn.nn" lines reflect another symptom or the
> possible cause of the memory error? They just look odd to me and so I
> wondered if they might be the cause of the problem.

Once you hit an java.lang.OutOfMemoryError everything is in an inconsistent
state and I would not be surprised that you get lots of other error messages
thereafter.

The important question is are any of these messages appearing *before* the
initial out of memory error or *after* - if the're any before then I would
suggest investigating them otherwise I would guess that fixing your out of
memory error may fix your other error messages.

--Nikolaos


> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 01, 2003 5:38 PM
> To: Tomcat Users List
> Subject: RE: Out of memory error
>
>
>
> could be because of this awful bug introduced in j2sdk1.4.1.  It
> wasn't in
> j2sdk1.4.0
> http://developer.java.sun.com/developer/bugParade/bugs/4724129.html
>
> Jake
>
> At 04:16 PM 4/1/2003 -0600, you wrote:
> >I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms
> >switches, but nothing seemed to help. I then switched to IBMJava2-14 and
> >it solved the problem.
> >
> >Steve
> >
> >-Original Message-----
> >From: Darian Shimy [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, April 01, 2003 1:16 PM
> >To: 'Tomcat Users List'
> >Subject: RE: Out of memory error
> >
> >
> >Set the memory using -Xmx and -Xms.  This should take care of the memory
> >problems.
> >
> >If you want to monitor the heap usage, add -verbose:gc
> >
> >--
> >Darian Shimy
> >
> > > -Original Message-
> > > From: Januski, Ken [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, March 31, 2003 12:21 PM
> > > To: Tomcat Users List
> > > Subject: Out of memory error
> > >
> > >
> > > Hi,
> > >
> > > Very occasionally my Tomcat server runs into out of memory
> > > errors. I'ts not
> > > a heavily used server, less than 10 users a day I'd guess on
> > > an Intranet.
> > > But every month or so it runs into memory problems. The
> > > newest ones occurred
> > > yesterday and I didn't hear about them until today. When I
> > > investigated I
> > > found hundreds of these lines repeating themselves in the
> > > catalina log.
> > >
> > > 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> > > 'nnn.nnn.nn.nn'
> > >
> > > They were eventually followed by this:
> > >
> > > 2003-03-30 22:38:08 HttpProcessor[80][1] process
> > > java.lang.OutOfMemoryError
> > >
> > > Can anyone tell me whether the first lines indicate a cause
> > > of the out of
> > > memory error or whether they're just another symptom of running out of
> > > memory?
> > >
> > > Thanks for any ideas,
> > >
> > > Ken
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of memory error

2003-04-01 Thread Januski, Ken
No, I'm using 1.4.0, so that shouldn't be it.

But no one has answered my original question: Do the 100s of multiple
"mapping server nnn.nnn.nnn.nn" lines reflect another symptom or the
possible cause of the memory error? They just look odd to me and so I
wondered if they might be the cause of the problem.

I also have 2 instances of Tomcat running as services and need to add the
memory settings there in registry. I'll try that but I'm still curious about
my original question.

Thanks again,

Ken




-Original Message-
From: Jacob Kjome [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 5:38 PM
To: Tomcat Users List
Subject: RE: Out of memory error



could be because of this awful bug introduced in j2sdk1.4.1.  It wasn't in 
j2sdk1.4.0
http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

Jake

At 04:16 PM 4/1/2003 -0600, you wrote:
>I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms 
>switches, but nothing seemed to help. I then switched to IBMJava2-14 and 
>it solved the problem.
>
>Steve
>
>-Original Message-
>From: Darian Shimy [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, April 01, 2003 1:16 PM
>To: 'Tomcat Users List'
>Subject: RE: Out of memory error
>
>
>Set the memory using -Xmx and -Xms.  This should take care of the memory
>problems.
>
>If you want to monitor the heap usage, add -verbose:gc
>
>--
>Darian Shimy
>
> > -Original Message-
> > From: Januski, Ken [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 31, 2003 12:21 PM
> > To: Tomcat Users List
> > Subject: Out of memory error
> >
> >
> > Hi,
> >
> > Very occasionally my Tomcat server runs into out of memory
> > errors. I'ts not
> > a heavily used server, less than 10 users a day I'd guess on
> > an Intranet.
> > But every month or so it runs into memory problems. The
> > newest ones occurred
> > yesterday and I didn't hear about them until today. When I
> > investigated I
> > found hundreds of these lines repeating themselves in the
> > catalina log.
> >
> > 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> > 'nnn.nnn.nn.nn'
> >
> > They were eventually followed by this:
> >
> > 2003-03-30 22:38:08 HttpProcessor[80][1] process
> > java.lang.OutOfMemoryError
> >
> > Can anyone tell me whether the first lines indicate a cause
> > of the out of
> > memory error or whether they're just another symptom of running out of
> > memory?
> >
> > Thanks for any ideas,
> >
> > Ken
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of memory error

2003-04-01 Thread Nikolaos Giannopoulos
(1) We are seeing what seems to be this bug as well (we have no JSPs in our
app btw) - Could it be that by using IBM's JRE for 1.4 that Steve
essentially worked around this bug

(2) I think its silly that SUN has slated fixing this bug for 1.5 and their
workaround makes very little sense - Anyone know what the following stated
work around translates to in actual code?

"Don't reuse StringBuffers. If you do reuse them, check their capacity and
make sure that you aren't making tiny Strings from huge StringBuffers"

(3) Steve, last time I downloaded an IBM JRE (a real long time ago) it was a
real pain as it was (a) buried within many nested web pages and (b) was part
of a websphere download - Do you offhand have a direct link to (just) IBM's
1.4 JRE?

Thanks,

--Nikolaos


> -Original Message-
> From: Jacob Kjome [mailto:[EMAIL PROTECTED]
>
> could be because of this awful bug introduced in j2sdk1.4.1.  It
> wasn't in
> j2sdk1.4.0
> http://developer.java.sun.com/developer/bugParade/bugs/4724129.html
>
> Jake
>
> At 04:16 PM 4/1/2003 -0600, you wrote:
> >I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms
> >switches, but nothing seemed to help. I then switched to IBMJava2-14 and
> >it solved the problem.
> >
> >Steve
> >
> >-Original Message-
> >From: Darian Shimy [mailto:[EMAIL PROTECTED]
> >Sent: Tuesday, April 01, 2003 1:16 PM
> >To: 'Tomcat Users List'
> >Subject: RE: Out of memory error
> >
> >
> >Set the memory using -Xmx and -Xms.  This should take care of the memory
> >problems.
> >
> >If you want to monitor the heap usage, add -verbose:gc
> >
> >--
> >Darian Shimy
> >
> > > -Original Message-
> > > From: Januski, Ken [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, March 31, 2003 12:21 PM
> > > To: Tomcat Users List
> > > Subject: Out of memory error
> > >
> > >
> > > Hi,
> > >
> > > Very occasionally my Tomcat server runs into out of memory
> > > errors. I'ts not
> > > a heavily used server, less than 10 users a day I'd guess on
> > > an Intranet.
> > > But every month or so it runs into memory problems. The
> > > newest ones occurred
> > > yesterday and I didn't hear about them until today. When I
> > > investigated I
> > > found hundreds of these lines repeating themselves in the
> > > catalina log.
> > >
> > > 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> > > 'nnn.nnn.nn.nn'
> > >
> > > They were eventually followed by this:
> > >
> > > 2003-03-30 22:38:08 HttpProcessor[80][1] process
> > > java.lang.OutOfMemoryError
> > >
> > > Can anyone tell me whether the first lines indicate a cause
> > > of the out of
> > > memory error or whether they're just another symptom of running out of
> > > memory?
> > >
> > > Thanks for any ideas,
> > >
> > > Ken
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of memory error

2003-04-01 Thread Jacob Kjome
could be because of this awful bug introduced in j2sdk1.4.1.  It wasn't in 
j2sdk1.4.0
http://developer.java.sun.com/developer/bugParade/bugs/4724129.html

Jake

At 04:16 PM 4/1/2003 -0600, you wrote:
I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms 
switches, but nothing seemed to help. I then switched to IBMJava2-14 and 
it solved the problem.

Steve

-Original Message-
From: Darian Shimy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 1:16 PM
To: 'Tomcat Users List'
Subject: RE: Out of memory error
Set the memory using -Xmx and -Xms.  This should take care of the memory
problems.
If you want to monitor the heap usage, add -verbose:gc

--
Darian Shimy
> -Original Message-
> From: Januski, Ken [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 31, 2003 12:21 PM
> To: Tomcat Users List
> Subject: Out of memory error
>
>
> Hi,
>
> Very occasionally my Tomcat server runs into out of memory
> errors. I'ts not
> a heavily used server, less than 10 users a day I'd guess on
> an Intranet.
> But every month or so it runs into memory problems. The
> newest ones occurred
> yesterday and I didn't hear about them until today. When I
> investigated I
> found hundreds of these lines repeating themselves in the
> catalina log.
>
> 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> 'nnn.nnn.nn.nn'
>
> They were eventually followed by this:
>
> 2003-03-30 22:38:08 HttpProcessor[80][1] process
> java.lang.OutOfMemoryError
>
> Can anyone tell me whether the first lines indicate a cause
> of the out of
> memory error or whether they're just another symptom of running out of
> memory?
>
> Thanks for any ideas,
>
> Ken
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Out of memory error

2003-04-01 Thread Turoff, Steve
I had the same problem on Redhat 7.1. I tried using the -Xmx and -Xms switches, but 
nothing seemed to help. I then switched to IBMJava2-14 and it solved the problem.

Steve

-Original Message-
From: Darian Shimy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2003 1:16 PM
To: 'Tomcat Users List'
Subject: RE: Out of memory error


Set the memory using -Xmx and -Xms.  This should take care of the memory
problems.

If you want to monitor the heap usage, add -verbose:gc

--
Darian Shimy 

> -Original Message-
> From: Januski, Ken [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 31, 2003 12:21 PM
> To: Tomcat Users List
> Subject: Out of memory error
> 
> 
> Hi,
> 
> Very occasionally my Tomcat server runs into out of memory 
> errors. I'ts not
> a heavily used server, less than 10 users a day I'd guess on 
> an Intranet.
> But every month or so it runs into memory problems. The 
> newest ones occurred
> yesterday and I didn't hear about them until today. When I 
> investigated I
> found hundreds of these lines repeating themselves in the 
> catalina log. 
> 
> 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> 'nnn.nnn.nn.nn'
> 
> They were eventually followed by this:
> 
> 2003-03-30 22:38:08 HttpProcessor[80][1] process
> java.lang.OutOfMemoryError
> 
> Can anyone tell me whether the first lines indicate a cause 
> of the out of
> memory error or whether they're just another symptom of running out of
> memory?
> 
> Thanks for any ideas,
> 
> Ken
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Out of memory error

2003-04-01 Thread Darian Shimy
Set the memory using -Xmx and -Xms.  This should take care of the memory
problems.

If you want to monitor the heap usage, add -verbose:gc

--
Darian Shimy 

> -Original Message-
> From: Januski, Ken [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 31, 2003 12:21 PM
> To: Tomcat Users List
> Subject: Out of memory error
> 
> 
> Hi,
> 
> Very occasionally my Tomcat server runs into out of memory 
> errors. I'ts not
> a heavily used server, less than 10 users a day I'd guess on 
> an Intranet.
> But every month or so it runs into memory problems. The 
> newest ones occurred
> yesterday and I didn't hear about them until today. When I 
> investigated I
> found hundreds of these lines repeating themselves in the 
> catalina log. 
> 
> 2003-03-30 22:38:07 StandardEngine[Standalone]: Mapping server name
> 'nnn.nnn.nn.nn'
> 
> They were eventually followed by this:
> 
> 2003-03-30 22:38:08 HttpProcessor[80][1] process
> java.lang.OutOfMemoryError
> 
> Can anyone tell me whether the first lines indicate a cause 
> of the out of
> memory error or whether they're just another symptom of running out of
> memory?
> 
> Thanks for any ideas,
> 
> Ken
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


RE: Out of memory errors

2002-10-18 Thread Shapira, Yoav
Hi,

>> I'me sure this one has been done to death but does anyone have any
>> guidelines on the settings of -Xms and -Xmx ($CATLINA_OPTS), or how
to
>> derive the optimal setting for these ?

Yes, it has been asked many times.  That's because everyone seems to
think there's a magical guideline somewhere.  There isn't.  To get the
best performance for your application, you have to profile your
application.

-Xmx is the key setting, you should start with tuning that.  As long as
you keep getting OutOfMemory errors, you need to increase -Xmx.  You
need to give yourself enough memory for peak traffic, and then some for
safety and overhead.  So run your app again and again with a load test
tool, see how much traffic you can handle and how much memory it
requires.

Once you've found the proper value for -Xmx, think about -Xms, the
minimum size.  Setting this close to -Xmx will speed up your server
startup if you cache a lot stuff on startup.  However, if your normal
usage pattern requires very little memory, and only peak times require
high memory, you can keep this low to avoid taking up memory
unnecessarily.

Keep -verbose:gc on so that you can see what garbage collection is
doing.  If you have a big heap, GC may take more time, and may create
visible pauses to your users.  Experiment with the various GC algorithms
(-Xincgc etc.) to see if they work well.

By that point you should be a bit more familiar with and comfortable
with more advanced tuning.  Analyze your app to get an estimate of the
breakdown between the young and old GC generations.  Tuning -XX:NewSize
and -XX:MaxNewSize can help a *lot*.  

Good luck,

Yoav Shapira
Millennium ChemInformatics

This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: Out of memory errors

2002-10-18 Thread Graham King
 Steve,

 What we did is to start the site up (our sites load and initialize all sorts of stuff on startup), 
wait till its all done setting itself up, and see what Runtime.totalMemory() is. Use that for -Xms 
(startup size). This should make the site start quicker because it will need to garbage collect less 
and allocate new memory chunks less.

 For -Xmx I have no particular guidance. You could check totalMemory after a week or so, it depends 
as much on how much you can spare, what else is on the machine, etc. We just made it big :-)

 Someone please correct me if I'm talking rubbish.

 Graham.

Steve Harris wrote:
Hi all,

I'me sure this one has been done to death but does anyone have any
guidelines on the settings of -Xms and -Xmx ($CATLINA_OPTS), or how to
derive the optimal setting for these ?

Cheers - Steve Harris

=
Steve Harris
Technical Analyst
MYRA Systems Corp.

Phone : 952-6361
Pager : 413-5043
=


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Out of Memory Exception

2002-10-01 Thread Rafael Angarita

Did you installed the solaris 8 patches for jdk1.4?

Roger Ting wrote:

>Sun OS 5.8. The funny thing is if i use Tomcat 1.3, this doesn't occur at
>all. But in my case, i need to use jdk 1.4 for cocoon 2.0.3.
>This is the source of headache. After i installed Cocoon, it is even worse.
>Out of Memory error just completely killed
>Tomcat. It is possible to use Tomcat with jdk 1.3.1 and cocoon 2.0.3 and
>both start up fine. However, problem occur
>when i intend to use Tomcat and Cocoon to connect to a databases using jdbc.
>So currently, my only hope is
>cocoon 2.0.3 and Tomcat 4.1 and JDK 1.4 and MySql J-Connector.
>
>Just need to know how to suppress Tomcat or Cocoon to take up so much memory
>
>Someone suggested it is due to  memory leak. I am installing the binary
>version of Tomcat. How can that be?
>
>
>
>- Original Message -
>From: "Michael Nicholson" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Wednesday, October 02, 2002 4:19 AM
>Subject: Re: Out of Memory Exception
>
>
>  
>
>>We'll probably need more information... what are trying to do?  Does it
>>happen immediately, or minutes/hours/days/weeks down the road?  What OS
>>
>>
>are
>  
>
>>you running it on?  etc.
>>
>>Mike
>>- Original Message -
>>From: "Roger Ting" <[EMAIL PROTECTED]>
>>To: <[EMAIL PROTECTED]>
>>Sent: Sunday, September 29, 2002 4:24 PM
>>Subject: Out of Memory Exception
>>
>>
>>I keep getting java lang out of memory error even i set
>>-Xmx to 64 meg. Does anyone know how to solve this problem?
>>
>>I am using jdk 1.4 Tomcat 4.1
>>
>>
>>--
>>To unsubscribe, e-mail:
>>
>>
><mailto:[EMAIL PROTECTED]>
>  
>
>>For additional commands, e-mail:
>>
>>
><mailto:[EMAIL PROTECTED]>
>  
>
>
>
>--
>To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>
>
>  
>

-- 

Rafael Angarita
Administrador de Sistemas
Telcel Bellsouth
(+58212)(2009765)





Re: Out of Memory Exception

2002-10-01 Thread Roger Ting

Sun OS 5.8. The funny thing is if i use Tomcat 1.3, this doesn't occur at
all. But in my case, i need to use jdk 1.4 for cocoon 2.0.3.
This is the source of headache. After i installed Cocoon, it is even worse.
Out of Memory error just completely killed
Tomcat. It is possible to use Tomcat with jdk 1.3.1 and cocoon 2.0.3 and
both start up fine. However, problem occur
when i intend to use Tomcat and Cocoon to connect to a databases using jdbc.
So currently, my only hope is
cocoon 2.0.3 and Tomcat 4.1 and JDK 1.4 and MySql J-Connector.

Just need to know how to suppress Tomcat or Cocoon to take up so much memory

Someone suggested it is due to  memory leak. I am installing the binary
version of Tomcat. How can that be?



- Original Message -
From: "Michael Nicholson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 02, 2002 4:19 AM
Subject: Re: Out of Memory Exception


> We'll probably need more information... what are trying to do?  Does it
> happen immediately, or minutes/hours/days/weeks down the road?  What OS
are
> you running it on?  etc.
>
> Mike
> - Original Message -
> From: "Roger Ting" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, September 29, 2002 4:24 PM
> Subject: Out of Memory Exception
>
>
> I keep getting java lang out of memory error even i set
> -Xmx to 64 meg. Does anyone know how to solve this problem?
>
> I am using jdk 1.4 Tomcat 4.1
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: Out of Memory Exception

2002-10-01 Thread Cor Hofman

Roger,

As I seem to recall, 64 Meg is the default max for the java VM. So you
probably have to go beyond 68M.
Another thing could be memory leaks, i.e. memory not reclaimed by the
garbage collector. Unless you have a fairly good explanation why you need
more than the 64Mb, I would consider looking for leaks :-)

Regards,

  Cor.

-Original Message-
From: Roger Ting [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 29, 2002 22:24
To: [EMAIL PROTECTED]
Subject: Out of Memory Exception


I keep getting java lang out of memory error even i set
-Xmx to 64 meg. Does anyone know how to solve this problem?

I am using jdk 1.4 Tomcat 4.1



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Out of Memory Exception

2002-10-01 Thread Michael Nicholson

We'll probably need more information... what are trying to do?  Does it
happen immediately, or minutes/hours/days/weeks down the road?  What OS are
you running it on?  etc.

Mike
- Original Message -
From: "Roger Ting" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, September 29, 2002 4:24 PM
Subject: Out of Memory Exception


I keep getting java lang out of memory error even i set
-Xmx to 64 meg. Does anyone know how to solve this problem?

I am using jdk 1.4 Tomcat 4.1


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: OUT OF MEMORY ERROR

2002-08-29 Thread Irina Lishchenko

On Tuesday 27 August 2002 18:41, you wrote:
> Hi mike,
>
>   Well, i tried changing the jvm through catalina.bat (tc 4.0.4) by
> adding the Catalina_opts = -Xms512m -Xmx512m but it seems it didn't change
> anything in the total memory cause I still see it being at 66m
> (www.motovan.com/MemoryTest.jsp)
> Anyways, I am reverting back to html for now and will try to incorporate
> servlet by servlet until i found where the error comes from.
>
> Thanks, Pat
>

Try to write
CATALINA_OPT="-Xms512m -Xmx512m"

it is because of the space between parameters, for me the same with JAVA_OPT 
worked well

ilis

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: OUT OF MEMORY ERROR

2002-08-27 Thread Patrick Codere

Hi mike,

Well, i tried changing the jvm through catalina.bat (tc 4.0.4) by
adding the Catalina_opts = -Xms512m -Xmx512m but it seems it didn't change
anything in the total memory cause I still see it being at 66m
(www.motovan.com/MemoryTest.jsp)
Anyways, I am reverting back to html for now and will try to incorporate
servlet by servlet until i found where the error comes from.

Thanks, Pat

-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]]
Sent: August 26, 2002 6:31 PM
To: Tomcat Users List
Subject: RE: OUT OF MEMORY ERROR


If you don't close the connection you'll eventually run the database out
of connections.  Also an open connection will use memory within the JVM
and build up the memory in use.  Another thing to do is to avoid using
strings, use stringbuffers instead.  Try to avoid doing things like this:

String str = "This " + number + " that " + anotherString;

If you do this you're creating a number of string objects, and the garbage
collector may not reclaim the memory quickly.  You can try adjusting the
memory that the JVM grabs at startup as well, the arguement is something
like -Xmx512M (that would grab 512 megs of ram).

One thing to consider, and it works great for me, is to use your servlets
and jsp's for access control through the application, but to use some
XML/XSLT
engine to actually retrieve and format the data coming from the database.
I use Oracle's XSQL Servlet, seems to work great and also seems to be less
filling (memory filling that is).

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

> -Original Message-
> From: Patrick Codere [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 3:15 PM
> To: 'Tomcat Users List'
> Subject: OUT OF MEMORY ERROR
>
>
> Hi everyone,
>
>   I have been getting this error for the past few weeks without
> solving the issue.  But I just found out that I had forgotten to close a
> database connection.  Could that have been the problem?  Time
> will tell, but
> what exactly happens when you don't close a db connection?
>
> Thanks for your help.
>
> Pat
>



--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



RE: OUT OF MEMORY ERROR

2002-08-26 Thread Jay Gardner

Hi Pat,

Not closing a database connection should not run you out of memory, unless
you have ALOT of traffic or no memory to begin with. Connections should time
out after a period of time, if you have relinquished to reference to them.
It is obviously best to close them explicitly when you are finished with
them.

How long does it take before you run out of memory? I seem to recall that
older versions of SUN's jdk had memory leaks when compiling JSP pages. Do
you only run out of memory after new JSP pages have been loaded or existing
ones have been changed? Or is this a slow leak that has some sort of
predictable behavior, like it runs out of memory three days after a restart,
etc...

Could you give more info? Without it, we are just guessing.

--Jay Gardner

-Original Message-
From: Patrick Codere [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 4:15 PM
To: 'Tomcat Users List'
Subject: OUT OF MEMORY ERROR

Hi everyone,

I have been getting this error for the past few weeks without
solving the issue.  But I just found out that I had forgotten to close a
database connection.  Could that have been the problem?  Time will tell, but
what exactly happens when you don't close a db connection?

Thanks for your help.

Pat


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




  1   2   >