Re: [JBoss-user] Out of memory error in freeBSD
Actually, both of you were right since the rebuilding of the kernel enabled me to start JBoss, but still have OutOfMemory errors once the application was used. Increasing the size of the permanent generation heap took care of this one. Thanks! Paul Andrew C. Oliver wrote: Re: [JBoss-user] Out of memory error in freeBSD Are you positive it isn’t this: http://jboss.org/wiki/Wiki.jsp?page=OutOfMemoryExceptionWhenRedeploying The page talks mostly about redeployment but 800 JSPs could also be a lot of class definitions. Thus fill up the perm generation pool on the heap... From: Paul Ekeland <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Date: Fri, 13 Feb 2004 15:38:04 +0100 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Out of memory error in freeBSD Ryan, we're going to try this option, even though it seemed at first freeBSD 5.1 dynamically dealt with process limits. Thanks! Paul Ryan Maclear wrote: Hi Paul, I don't know if this is relevant in your case, but I've had this problem before on other FreeBSD versions (4.7-STABLE) and fixed it as follows: FreeBSD has kernel level user process limits, including direct memory allocation If the user limits are too low for your jboss instance together with your application, jboss reports an OutOfMemory error. This can be fixed by increasing the kernel user process limits by adding the following lines to the kernel config file and rebuilding the kernel. The example below limits the user to 384Mb of memory, but this can be increased to what you need, options MAXDSIZ="(384*1024*1024)" options MAXSSIZ="(384*1024*1024)" options DFLDSIZ="(384*1024*1024)" Of course, if this has already been done, the memory limits are high enough, and the problem still persists, the problem lies elsewhere. It is however more than likely not a jboss problem in this case. Hope this helps. Cheers, Ryan On Fri, 13 Feb 2004, Paul Ekeland wrote: Hello all, I am trying to deploy our application on JBoss in a freeBSD 5.1 platform with 1Go of RAM, only to get to an OutOfMemory error. Here is the configuration: 1. In a first step, we precompiled our JSP's (all 800 of them) and the server crashes during the loading of the servlets 2. Without the precompilation, JBoss crashes the same way a bit later during the initialisation process. In a windows environment, with a less powerful machine, I have found the solution by tweaking the standardJboss.xml file and lowering all non-cluster related max-caches to 1. That did the job and I thought hopefuly the result would be the same on our main server. Unfortunately, we got exactly the same error as before so I am wondering even if these modifications are taken in account in the freeBSD environment? Any hint is very appreciated! Thanks, Paul --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Paul Ekeland Odile Jacob Education 15 rue Soufflot 75005 Paris tél.: 01 44 41 64 93 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356_id=3438=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Paul Ekeland Odile Jacob Education 15 rue Soufflot 75005 Paris tél.: 01 44 41 64 93 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of memory error in freeBSD
Title: Re: [JBoss-user] Out of memory error in freeBSD Are you positive it isn’t this: http://jboss.org/wiki/Wiki.jsp?page=OutOfMemoryExceptionWhenRedeploying The page talks mostly about redeployment but 800 JSPs could also be a lot of class definitions. Thus fill up the perm generation pool on the heap... From: Paul Ekeland <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] Date: Fri, 13 Feb 2004 15:38:04 +0100 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Out of memory error in freeBSD Ryan, we're going to try this option, even though it seemed at first freeBSD 5.1 dynamically dealt with process limits. Thanks! Paul Ryan Maclear wrote: Hi Paul, I don't know if this is relevant in your case, but I've had this problem before on other FreeBSD versions (4.7-STABLE) and fixed it as follows: FreeBSD has kernel level user process limits, including direct memory allocation If the user limits are too low for your jboss instance together with your application, jboss reports an OutOfMemory error. This can be fixed by increasing the kernel user process limits by adding the following lines to the kernel config file and rebuilding the kernel. The example below limits the user to 384Mb of memory, but this can be increased to what you need, options MAXDSIZ="(384*1024*1024)" options MAXSSIZ="(384*1024*1024)" options DFLDSIZ="(384*1024*1024)" Of course, if this has already been done, the memory limits are high enough, and the problem still persists, the problem lies elsewhere. It is however more than likely not a jboss problem in this case. Hope this helps. Cheers, Ryan On Fri, 13 Feb 2004, Paul Ekeland wrote: Hello all, I am trying to deploy our application on JBoss in a freeBSD 5.1 platform with 1Go of RAM, only to get to an OutOfMemory error. Here is the configuration: 1. In a first step, we precompiled our JSP's (all 800 of them) and the server crashes during the loading of the servlets 2. Without the precompilation, JBoss crashes the same way a bit later during the initialisation process. In a windows environment, with a less powerful machine, I have found the solution by tweaking the standardJboss.xml file and lowering all non-cluster related max-caches to 1. That did the job and I thought hopefuly the result would be the same on our main server. Unfortunately, we got exactly the same error as before so I am wondering even if these modifications are taken in account in the freeBSD environment? Any hint is very appreciated! Thanks, Paul --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Paul Ekeland Odile Jacob Education 15 rue Soufflot 75005 Paris tél.: 01 44 41 64 93 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356_id=3438=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of memory error in freeBSD
Ryan, we're going to try this option, even though it seemed at first freeBSD 5.1 dynamically dealt with process limits. Thanks! Paul Ryan Maclear wrote: Hi Paul, I don't know if this is relevant in your case, but I've had this problem before on other FreeBSD versions (4.7-STABLE) and fixed it as follows: FreeBSD has kernel level user process limits, including direct memory allocation If the user limits are too low for your jboss instance together with your application, jboss reports an OutOfMemory error. This can be fixed by increasing the kernel user process limits by adding the following lines to the kernel config file and rebuilding the kernel. The example below limits the user to 384Mb of memory, but this can be increased to what you need, options MAXDSIZ="(384*1024*1024)" options MAXSSIZ="(384*1024*1024)" options DFLDSIZ="(384*1024*1024)" Of course, if this has already been done, the memory limits are high enough, and the problem still persists, the problem lies elsewhere. It is however more than likely not a jboss problem in this case. Hope this helps. Cheers, Ryan On Fri, 13 Feb 2004, Paul Ekeland wrote: Hello all, I am trying to deploy our application on JBoss in a freeBSD 5.1 platform with 1Go of RAM, only to get to an OutOfMemory error. Here is the configuration: 1. In a first step, we precompiled our JSP's (all 800 of them) and the server crashes during the loading of the servlets 2. Without the precompilation, JBoss crashes the same way a bit later during the initialisation process. In a windows environment, with a less powerful machine, I have found the solution by tweaking the standardJboss.xml file and lowering all non-cluster related max-caches to 1. That did the job and I thought hopefuly the result would be the same on our main server. Unfortunately, we got exactly the same error as before so I am wondering even if these modifications are taken in account in the freeBSD environment? Any hint is very appreciated! Thanks, Paul --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Paul Ekeland Odile Jacob Education 15 rue Soufflot 75005 Paris tél.: 01 44 41 64 93 --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of memory error in freeBSD
Hi Paul, I don't know if this is relevant in your case, but I've had this problem before on other FreeBSD versions (4.7-STABLE) and fixed it as follows: FreeBSD has kernel level user process limits, including direct memory allocation If the user limits are too low for your jboss instance together with your application, jboss reports an OutOfMemory error. This can be fixed by increasing the kernel user process limits by adding the following lines to the kernel config file and rebuilding the kernel. The example below limits the user to 384Mb of memory, but this can be increased to what you need, options MAXDSIZ="(384*1024*1024)" options MAXSSIZ="(384*1024*1024)" options DFLDSIZ="(384*1024*1024)" Of course, if this has already been done, the memory limits are high enough, and the problem still persists, the problem lies elsewhere. It is however more than likely not a jboss problem in this case. Hope this helps. Cheers, Ryan On Fri, 13 Feb 2004, Paul Ekeland wrote: > Hello all, > > I am trying to deploy our application on JBoss in a freeBSD 5.1 platform with 1Go of > RAM, only to get to an OutOfMemory error. Here is the configuration: > > 1. In a first step, we precompiled our JSP's (all 800 of them) and the server > crashes during the loading of the servlets > 2. Without the precompilation, JBoss crashes the same way a bit later during the > initialisation process. > In a windows environment, with a less powerful machine, I have found the solution by > tweaking the standardJboss.xml file and lowering all non-cluster related > max-caches to 1. That did the job and I thought hopefuly the result would be the > same on our main server. Unfortunately, we got exactly the same error as > before so I am wondering even if these modifications are taken in account in the > freeBSD environment? > Any hint is very appreciated! Thanks, > > Paul > > --- SF.Net is sponsored by: > Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux > with a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > ___ JBoss-user > mailing list [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of Memory error
Yes, I have had the same problem many times with jboss 3.2.1. Development Mailing Lists <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 09/09/2003 09:09 PM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject [JBoss-user] Out of Memory error After redeploying several times in Jboss (3.0.7) Jboss gives an OutOFMemory error. Seems to only happen during development when redeploying several times. Does this happen to anyone else? -John --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Out of Memory Error
The startup script uses an environment variable to grab JVM options: JAVA_OPTS. Without it you have 64 of the 1000 available. JAVA_OPTS = -Xmx256M -Xms256M That'll give you a minimum and maximum of 256 megs. I like to set min = max so that it allocates the max right up front. -Original Message- From: Sanjeev Singal [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 9:57 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] Out of Memory Error Hey All, I have an application running on jboss-3.0.0. During the stress testing of this application after a while (approx. 2 hours) we start seeing outOfMemoryError messages. Then jboss stops responding. Then we have to restart the jboss but same error appears during our stress testing again. My system info is: Intel Pentium PIII 1GHz 1G of RAM Any idea how we can fix that problem?? Thanks. Sanjeev --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Out of Memory Error
Upgrade to a decent version, this is about one year old! > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Sanjeev Singal > Sent: jeudi, 3. avril 2003 19:57 > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Out of Memory Error > > > Hey All, > > I have an application running on jboss-3.0.0. During the > stress testing > of this application after a while (approx. 2 hours) we start seeing > outOfMemoryError messages. Then jboss stops responding. Then > we have to > restart the jboss but same error appears during our stress testing > again. > > My system info is: > Intel Pentium PIII 1GHz 1G of RAM > > Any idea how we can fix that problem?? > > Thanks. > > Sanjeev > > > > --- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --- This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of memory error - memory leak?
Joel Boehland wrote: > Hi, > I have also had this error pop up this past week after > multiple deploy/undeploy cycles while using > JBoss-2.4.3_Jetty-3.1.3-1, and the Blackdown-1.3.0-FC > jvm. I don't think Dan's suggestion of using an n x m > threading library will fix this problem however, as I > have had this error while using green threads(One big > process, no system threads) as well as native threads. > > > One thing in common I noticed between Jozsa and my > situation is that we're both using fairly large > libraries in our apps (Jozsa is using Cocoon, I'm > using Enhydra+xmlc). > > Maybe the classloaders and classes they are using for > these large libraries aren't getting fully cleaned up > between deploy cycles? > Not a bad wild guess! So the error you're seeing has nothing to do with thread creation (usually when the out of memory error is actually a process table limit, it happens in a thread create) -danch ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of memory error - memory leak?
Hi, I have also had this error pop up this past week after multiple deploy/undeploy cycles while using JBoss-2.4.3_Jetty-3.1.3-1, and the Blackdown-1.3.0-FC jvm. I don't think Dan's suggestion of using an n x m threading library will fix this problem however, as I have had this error while using green threads(One big process, no system threads) as well as native threads. One thing in common I noticed between Jozsa and my situation is that we're both using fairly large libraries in our apps (Jozsa is using Cocoon, I'm using Enhydra+xmlc). Maybe the classloaders and classes they are using for these large libraries aren't getting fully cleaned up between deploy cycles? I have filed a bug report on the jboss sourceforge page. Its Id is: 482875 Jozsa Kristof, if you have any additional info (or a stack trace), it might help the developers if you append it to the bug report. --Joel --- danch <[EMAIL PROTECTED]> wrote: > > > Jozsa Kristof wrote: > > > I'm developing my own Cocoon project in a bundled > JBoss+Catalina on linux. > > I've found out, that during development, after 6-8 > deployment of my project > > WAR file, jboss drops a nasty out of memory > exception. > > > This is probably a thread problem - if you look at > the message within > the exception, it's trying to create a thread. > > > > > > Now, I have two questions regarding this: isn't > that caused by a memory leak > > in JBoss (as I'm re-deploying basically the same > file over and over, really > > only a few bytes changes or increases every time); > and why JBoss wont use > > more memory if I still have system resources > available? > > > What's (most likely) happening is your running out > of process table > entries for the user JBoss is running as. There > _may_ be a thread leak > associated with deployment, but this problem also > seams worse with > certain JDKs (I believe that the 1.3.1 beta from sun > was particularly > bad). Which JDK are you using? > > The only way to obliterate this problem once and for > all is to switch to > the recently released alternate pthread > implementation from IBM, which > implements an N to M mapping from user threads to > kernel threads (so > that ~200 java threads will map to ~200 pthreads, > but only to a very few > kernel threads, which is where the limit is). I > posted the link to this > library a few months ago on this list and I'd really > like someone to try > it for me and let me know how it goes ;8^}) > > -danch > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of memory error - memory leak?
On Fri, Nov 16, 2001 at 09:28:51AM -0600, danch wrote: > Jozsa Kristof wrote: > > >I'm developing my own Cocoon project in a bundled JBoss+Catalina on linux. > >I've found out, that during development, after 6-8 deployment of my project > >WAR file, jboss drops a nasty out of memory exception. > > This is probably a thread problem - if you look at the message within > the exception, it's trying to create a thread. > > >Now, I have two questions regarding this: isn't that caused by a memory > >leak > >in JBoss (as I'm re-deploying basically the same file over and over, really > >only a few bytes changes or increases every time); and why JBoss wont use > >more memory if I still have system resources available? > > What's (most likely) happening is your running out of process table > entries for the user JBoss is running as. There _may_ be a thread leak > associated with deployment, but this problem also seams worse with > certain JDKs (I believe that the 1.3.1 beta from sun was particularly > bad). Which JDK are you using? IBM JDK 1.3.0, as this gives me about twice the speed comparing to Sun's one under Linux. > The only way to obliterate this problem once and for all is to switch to > the recently released alternate pthread implementation from IBM, which > implements an N to M mapping from user threads to kernel threads (so > that ~200 java threads will map to ~200 pthreads, but only to a very few > kernel threads, which is where the limit is). I posted the link to this > library a few months ago on this list and I'd really like someone to try > it for me and let me know how it goes ;8^}) Okay, can you please give me the URL (or maybe your mail's subject to look it up)? I'm willing to test it out and share the results with you, with this list, or anyone.. :) Christopher -- .Digital.Yearning.for.Networked.Assassination.and.Xenocide ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of memory error - memory leak?
Jozsa Kristof wrote: > I'm developing my own Cocoon project in a bundled JBoss+Catalina on linux. > I've found out, that during development, after 6-8 deployment of my project > WAR file, jboss drops a nasty out of memory exception. This is probably a thread problem - if you look at the message within the exception, it's trying to create a thread. > > Now, I have two questions regarding this: isn't that caused by a memory leak > in JBoss (as I'm re-deploying basically the same file over and over, really > only a few bytes changes or increases every time); and why JBoss wont use > more memory if I still have system resources available? What's (most likely) happening is your running out of process table entries for the user JBoss is running as. There _may_ be a thread leak associated with deployment, but this problem also seams worse with certain JDKs (I believe that the 1.3.1 beta from sun was particularly bad). Which JDK are you using? The only way to obliterate this problem once and for all is to switch to the recently released alternate pthread implementation from IBM, which implements an N to M mapping from user threads to kernel threads (so that ~200 java threads will map to ~200 pthreads, but only to a very few kernel threads, which is where the limit is). I posted the link to this library a few months ago on this list and I'd really like someone to try it for me and let me know how it goes ;8^}) -danch ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of memory error
> "LO" == Ludovic Orban <[EMAIL PROTECTED]> writes: LO> Maybe that has something to do with this bug: LO> http://developer.java.sun.com/developer/bugParade/bugs/4395735.html LO> It looks quite the same. Looks probable. We've observed the same thing a while ago. At the time it looked like JBoss was not suitable for production. Somebody suggested that it may be related to the JVM and that they used the IBM JDK1.3 instead and with quite some success. We've tried it and are very happy with the solution and now JBoss is back on the map (Bigtime of course :). Subjectively, I'd even say that the IBM JDK runs better on a linux box (no measurements however). Hope this helps a little && Happy Hacking. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com CTO mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Out of memory error
Maybe that has something to do with this bug: http://developer.java.sun.com/developer/bugParade/bugs/4395735.html It looks quite the same. Ludovic --On jeudi 19 juillet 2001 16:25 -0400 Jim Archer <[EMAIL PROTECTED]> wrote: > And we have been testing with Debian Potato. We're now in the process of > installing a production server with Debian Woody on the 2.4 kernel and we > are going to test aggressively once that s set up. > > I'll keep the list posted. > > Jim ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Out of memory error
And we have been testing with Debian Potato. We're now in the process of installing a production server with Debian Woody on the 2.4 kernel and we are going to test aggressively once that s set up. I'll keep the list posted. Jim --On Thursday, July 19, 2001 11:50 AM -0400 Lex <[EMAIL PROTECTED]> wrote: > > > Yep - we are using RedHat Linux 7.0 > > -Mike > >> I think it's more of a Linux with JDK1.3.1 thing, assuming you're> > >> using Linux, of course. As far as I know, there were no major > >> memory-related architectural changes between 1.3 and 1.3.1. > > --- > > Michael R. Maraya > >>> -- > >>> From: Lex[SMTP:[EMAIL PROTECTED]] > >>> Reply To: [EMAIL PROTECTED] > >>> Sent: Thursday, July 19, 2001 7:24 AM > >>> To: [EMAIL PROTECTED] > >>> Subject: RE: [JBoss-user] Out of memory error > >>> > >>> We found the same problem during stress testing with JBoss 2.4 Beat/ > >>> Tomcat 3.2.2 JDK1.3.1. We had another amchine with JDK 1.3.0 that did >>> not > >>> have the problem. We Downgraded the problem machine to 1.3.0 and the > >>> problem went away. Is there some explaination for this? Is this a JBoss > >>> vs. JDK1.3.1 thing? > >>> > >>> Regards, > >>> Mike > >>> > I shall be telling this with a sigh Somewhere ages and ages hence: Two roads diverged in a wood, and I - I took the one less traveled by, And that has made all the difference. - Robert Frost, 1916 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Out of memory error
FYI, We've seen very strange memory problems with RedHat 7.1 + JDK 1.3.1 as well that did not occur on Win2k or RedHat 6.2. Regards Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Lex Sent: Thursday, July 19, 2001 11:50 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Out of memory error Yep - we are using RedHat Linux 7.0 -Mike > I think it's more of a Linux with JDK1.3.1 thing, assuming you're> > using Linux, of course. As far as I know, there were no major > memory-related architectural changes between 1.3 and 1.3.1. --- Michael R. Maraya >> -- >> From: Lex[SMTP:[EMAIL PROTECTED]] >> Reply To: [EMAIL PROTECTED] >> Sent: Thursday, July 19, 2001 7:24 AM >> To: [EMAIL PROTECTED] >> Subject: RE: [JBoss-user] Out of memory error >> >> We found the same problem during stress testing with JBoss 2.4 Beat/ >> Tomcat 3.2.2 JDK1.3.1. We had another amchine with JDK 1.3.0 that did not >> have the problem. We Downgraded the problem machine to 1.3.0 and the >> problem went away. Is there some explaination for this? Is this a JBoss >> vs. JDK1.3.1 thing? >> >> Regards, >> Mike >> >> ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Out of memory error
Yep - we are using RedHat Linux 7.0 -Mike > I think it's more of a Linux with JDK1.3.1 thing, assuming you're> > using Linux, of course. As far as I know, there were no major > memory-related architectural changes between 1.3 and 1.3.1. --- Michael R. Maraya >> -- >> From: Lex[SMTP:[EMAIL PROTECTED]] >> Reply To: [EMAIL PROTECTED] >> Sent: Thursday, July 19, 2001 7:24 AM >> To: [EMAIL PROTECTED] >> Subject: RE: [JBoss-user] Out of memory error >> >> We found the same problem during stress testing with JBoss 2.4 Beat/ >> Tomcat 3.2.2 JDK1.3.1. We had another amchine with JDK 1.3.0 that did not >> have the problem. We Downgraded the problem machine to 1.3.0 and the >> problem went away. Is there some explaination for this? Is this a JBoss >> vs. JDK1.3.1 thing? >> >> Regards, >> Mike >> >>
RE: [JBoss-user] Out of memory error
I think it's more of a Linux with JDK1.3.1 thing, assuming you're using Linux, of course. As far as I know, there were no major memory-related architectural changes between 1.3 and 1.3.1. --- Michael R. Maraya > -- > From: Lex[SMTP:[EMAIL PROTECTED]] > Reply To: [EMAIL PROTECTED] > Sent: Thursday, July 19, 2001 7:24 AM > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] Out of memory error > > We found the same problem during stress testing with JBoss 2.4 Beat/ > Tomcat 3.2.2 JDK1.3.1. We had another amchine with JDK 1.3.0 that did not > have the problem. We Downgraded the problem machine to 1.3.0 and the > problem went away. Is there some explaination for this? Is this a JBoss > vs. JDK1.3.1 thing? > > Regards, > Mike > > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Out of memory error
We found the same problem during stress testing with JBoss 2.4 Beat/ Tomcat 3.2.2 JDK1.3.1. We had another amchine with JDK 1.3.0 that did not have the problem. We Downgraded the problem machine to 1.3.0 and the problem went away. Is there some explaination for this? Is this a JBoss vs. JDK1.3.1 thing? Regards, Mike > We've been experiencing memory problems here using JBoss 2.2.2 on>Sun's JDK 1.3.1 for Linux. Switching to IBM's JDK 1.3.0-8 seems to have>solved the problem though. If you're using 1.3.1, try downgrading to 1.3.0>(you can try IBM, Blackdown or Sun -- I can't seem to find 1.3.0 on the Sun>website though). > HTH.>---Michael R. Maraya> --> From: Jim Gloor[SMTP:[EMAIL PROTECTED]]> Reply To: [EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 10:14 AM> To: '[EMAIL PROTECTED]'> Subject: RE: [JBoss-user] Out of memory error> > We've been consistently having this problem, too, after about 5-6 hours> (~60,000 transactions) of stress testing. We're using JBoss 2.2.1 +> Tomcat> 3.2.1 on a Linux box with 200 MB of RAM allocated for the JBoss VM.> Here's> a specific example of the error message:> > Exception in thread "CompileThread0" java.lang.OutOfMemoryError: requested> 53687> 0924 bytes> > We've been monitoring memory usage, and the JBoss VM was only using about> 10% of the available memory at the time of the error, so that's clearly> not> the problem.> > We'll start monitoring thread usage, as per Jim Archer's comments, but in> the meantime, does anyone have any other insights/suggestions? We'd> actually like to start using JBoss in a production system soon, but this> could be a real problem!> > > > "JA" == Jim Archer <> writes:> >> > JA> Saul, watch your thread usage. jBoss will usually throw an out of> > JA> memory exception when it can't create a new thread... On Solaris,> > JA> you have a hard limit of threads.> >> > JA> I don't know if this is your actual problem, but I thought I would> > JA> mention it.> >> > I think there should be a bug open. We've had a lot of problems with> > this on a Linux box.> >> > -- > > Nicolai P Guba http://www.gnu.org http://www.frontwire.com> > mailto: mailto:> PROTECTED>> > GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708> > > Jim Gloor ([EMAIL PROTECTED])> Senior Software Engineer, Open Ratings, Inc.> 928 Commonwealth Avenue> Boston, MA 02215-1204> (617) 582-5159>
Re: [JBoss-user] Out of memory error
> "JA" == Jim Archer <[EMAIL PROTECTED]> writes: JA> Hi All... --On Thursday, July 12, 2001 7:30 PM +1000 Robert JA> Schulz JA> <[EMAIL PROTECTED]> wrote: >> We are pretty close to production as well and run numerous stress >> test (creation of around 50,000 beans, 500,000+ SQL statements) and >> jboss never climbed over 50MB ... we use RH7.1 (Linux) 2.4, sun >> jdk1.3.1, postgres7.1.2 and resin in a separate VMs. We are only >> using "core" EJB features (no MDBs, no SOAP, no integrated >> Servlets, etc, etc ...) JA> This is exactly what we see on Debian Linux withthe 2.2 kernel and JA> Sun 1.3.1 JDK. Someone suggested using the IBM 1.3 JDK. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Out of memory error
Hi All... --On Thursday, July 12, 2001 7:30 PM +1000 Robert Schulz <[EMAIL PROTECTED]> wrote: > We are pretty close to production as well and run > numerous stress test (creation of around 50,000 beans, > 500,000+ SQL statements) and jboss never climbed over > 50MB ... we use RH7.1 (Linux) 2.4, sun jdk1.3.1, > postgres7.1.2 and resin in a separate VMs. We are only > using "core" EJB features (no MDBs, no SOAP, no integrated > Servlets, etc, etc ...) This is exactly what we see on Debian Linux withthe 2.2 kernel and Sun 1.3.1 JDK. Jim ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Out of memory error
Not sure whether this help ... we wrote a little MBean which every 30 seconds runs System.gc() and reports on used and allocated memory. Will take you 3 minutes to write, but if you are interested I'll post the code. We use that to keep an eye on memory. Another approach would be to first run a stress test only against jboss (without tomcat, or with tomcat in a separate VM) - and monitor them separately. If there is a threading issue - have a look at the new POSIX threading for Linux just released by IBM ... We are pretty close to production as well and run numerous stress test (creation of around 50,000 beans, 500,000+ SQL statements) and jboss never climbed over 50MB ... we use RH7.1 (Linux) 2.4, sun jdk1.3.1, postgres7.1.2 and resin in a separate VMs. We are only using "core" EJB features (no MDBs, no SOAP, no integrated Servlets, etc, etc ...) Good luck and let us know how you go. R. -Original Message- From: Jim Gloor [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 12, 2001 12:14 AM To: '[EMAIL PROTECTED]' Subject: RE: [JBoss-user] Out of memory error We've been consistently having this problem, too, after about 5-6 hours (~60,000 transactions) of stress testing. We're using JBoss 2.2.1 + Tomcat 3.2.1 on a Linux box with 200 MB of RAM allocated for the JBoss VM. Here's a specific example of the error message: Exception in thread "CompileThread0" java.lang.OutOfMemoryError: requested 53687 0924 bytes We've been monitoring memory usage, and the JBoss VM was only using about 10% of the available memory at the time of the error, so that's clearly not the problem. We'll start monitoring thread usage, as per Jim Archer's comments, but in the meantime, does anyone have any other insights/suggestions? We'd actually like to start using JBoss in a production system soon, but this could be a real problem! > "JA" == Jim Archer <> writes: > > JA> Saul, watch your thread usage. jBoss will usually throw an out of > JA> memory exception when it can't create a new thread... On Solaris, > JA> you have a hard limit of threads. > > JA> I don't know if this is your actual problem, but I thought I would > JA> mention it. > > I think there should be a bug open. We've had a lot of problems with > this on a Linux box. > > -- > Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com > mailto: mailto: > GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 Jim Gloor ([EMAIL PROTECTED]) Senior Software Engineer, Open Ratings, Inc. 928 Commonwealth Avenue Boston, MA 02215-1204 (617) 582-5159 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Out of memory error
We've been experiencing memory problems here using JBoss 2.2.2 on Sun's JDK 1.3.1 for Linux. Switching to IBM's JDK 1.3.0-8 seems to have solved the problem though. If you're using 1.3.1, try downgrading to 1.3.0 (you can try IBM, Blackdown or Sun -- I can't seem to find 1.3.0 on the Sun website though). HTH. --- Michael R. Maraya > -- > From: Jim Gloor[SMTP:[EMAIL PROTECTED]] > Reply To: [EMAIL PROTECTED] > Sent: Wednesday, July 11, 2001 10:14 AM > To: '[EMAIL PROTECTED]' > Subject: RE: [JBoss-user] Out of memory error > > We've been consistently having this problem, too, after about 5-6 hours > (~60,000 transactions) of stress testing. We're using JBoss 2.2.1 + > Tomcat > 3.2.1 on a Linux box with 200 MB of RAM allocated for the JBoss VM. > Here's > a specific example of the error message: > > Exception in thread "CompileThread0" java.lang.OutOfMemoryError: requested > 53687 > 0924 bytes > > We've been monitoring memory usage, and the JBoss VM was only using about > 10% of the available memory at the time of the error, so that's clearly > not > the problem. > > We'll start monitoring thread usage, as per Jim Archer's comments, but in > the meantime, does anyone have any other insights/suggestions? We'd > actually like to start using JBoss in a production system soon, but this > could be a real problem! > > > > "JA" == Jim Archer <> writes: > > > > JA> Saul, watch your thread usage. jBoss will usually throw an out of > > JA> memory exception when it can't create a new thread... On Solaris, > > JA> you have a hard limit of threads. > > > > JA> I don't know if this is your actual problem, but I thought I would > > JA> mention it. > > > > I think there should be a bug open. We've had a lot of problems with > > this on a Linux box. > > > > -- > > Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com > > mailto: mailto: PROTECTED> > > GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 > > > Jim Gloor ([EMAIL PROTECTED]) > Senior Software Engineer, Open Ratings, Inc. > 928 Commonwealth Avenue > Boston, MA 02215-1204 > (617) 582-5159 > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Out of memory error
We've been consistently having this problem, too, after about 5-6 hours (~60,000 transactions) of stress testing. We're using JBoss 2.2.1 + Tomcat 3.2.1 on a Linux box with 200 MB of RAM allocated for the JBoss VM. Here's a specific example of the error message: Exception in thread "CompileThread0" java.lang.OutOfMemoryError: requested 53687 0924 bytes We've been monitoring memory usage, and the JBoss VM was only using about 10% of the available memory at the time of the error, so that's clearly not the problem. We'll start monitoring thread usage, as per Jim Archer's comments, but in the meantime, does anyone have any other insights/suggestions? We'd actually like to start using JBoss in a production system soon, but this could be a real problem! > "JA" == Jim Archer <> writes: > > JA> Saul, watch your thread usage. jBoss will usually throw an out of > JA> memory exception when it can't create a new thread... On Solaris, > JA> you have a hard limit of threads. > > JA> I don't know if this is your actual problem, but I thought I would > JA> mention it. > > I think there should be a bug open. We've had a lot of problems with > this on a Linux box. > > -- > Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com > mailto: mailto: > GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 Jim Gloor ([EMAIL PROTECTED]) Senior Software Engineer, Open Ratings, Inc. 928 Commonwealth Avenue Boston, MA 02215-1204 (617) 582-5159 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of memory error
> "JA" == Jim Archer <[EMAIL PROTECTED]> writes: JA> Saul, watch your thread usage. jBoss will usually throw an out of JA> memory exception when it can't create a new thread... On Solaris, JA> you have a hard limit of threads. JA> I don't know if this is your actual problem, but I thought I would JA> mention it. I think there should be a bug open. We've had a lot of problems with this on a Linux box. -- Nicolai P Gubahttp://www.gnu.org http://www.frontwire.com mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] GSM: +44 (0)7909 960 751 DDI: +44 (0)20 7368 9708 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Out of memory error
Saul, watch your thread usage. jBoss will usually throw an out of memory exception when it can't create a new thread... On Solaris, you have a hard limit of threads. I don't know if this is your actual problem, but I thought I would mention it. Jim --On Friday, July 06, 2001 6:47 PM -0400 Saul Farber <[EMAIL PROTECTED]> wrote: > Hello again, > > I'm having some trouble with Jboss/Jetty running out of memory after > some heavy use. There's 192M of real memory and another 256M of shared > memory on a solaris 2.6 install. However, after some heavy use, the jvm > running Jboss takes up about 85M of real memory, doesn't use swap, and > then starts spitting java.lang.OutOfMemoryError s. > > Any way to tune down Jboss so that any optional/caching features are > disabled, and therefore less memory is used? > > Plus, I thought that java was (mark and sweep) auto-garbage collecting. > How can I be running out of memory when memory leaks are that much > harder to come upon? > > Thanks! > > Saul > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user I shall be telling this with a sigh Somewhere ages and ages hence: Two roads diverged in a wood, and I - I took the one less traveled by, And that has made all the difference. - Robert Frost, 1916 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user