RE: [JBoss-user] Anyway to clean memory usage after run jboss?
I forgot to mention caching in my previous post. Look if your jboss uses large disk space (files), then part of it must appear as RAM cached, which also substracts from your free MEM. Think of going redhat 7.2 (REALLY STABLE, performer, (Beats FreeBSD 4.5 by 10%)) Think of going blackdown. We have had no problems which RH 7.2 and blackdown jdk1.3.1_02b-FCS. On the same machine we also run pgsql (which works all the time like a beauty), and also the world leader in memory leaks and bad performance Lotus Notes. [root@hermes jboss]# uptime 10:13am up 18 days, 23:08, 23 users, load average: 1.06, 0.99, 0.80 [root@hermes jboss]# (The last reboot were due to maintenance reasons and not a failure) See?? ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyway to clean memory usage after run jboss?
Are you using `free' command to report free memory? If you do it's a common error to look at the first line of report. `used' column there includes memory used for cache and buffers. Refer to the second line, the one that starts with `-/+ buffers/cache:'. Hope it helps. - Original Message - From: "Junjie Ding" <[EMAIL PROTECTED]> To: "Paul Cody" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 16, 2002 8:33 PM Subject: RE: [JBoss-user] Anyway to clean memory usage after run jboss? > Hi Paul, > > Yeah, that's what I thought. I killed all java process. I have no Timer > or Threading Those memory is taken by nobody. Just seems like memory > leak. > > As I remember, I didn't run into this problem when I was using Solaris 7. > I just have this problem recently when I move to Linux. > > And there is another issue. I downloaded JBoss3.0 yesterday and tried to > deploy > my application there, just trying to compile and deploy. The memory usage > goes up > in the deploy process > > Any suggestion? > > Thanks a lot, > > Junjie > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Paul Cody > Sent: Wednesday, May 15, 2002 12:01 PM > To: 'Junjie Ding'; [EMAIL PROTECTED] > Subject: RE: [JBoss-user] Anyway to clean memory usage after run jboss? > > > What do you mean by "does not release memory"? You should never have to > restart the machine, this is completely unnecessary. Just kill the java > process that is running JBoss. If your application is not shutting down > cleanly, think about any threads that you may be creating, esp things like > java.util.Timer or interaction with the JMX Timer service. If necessary, > you can run a debugger to see where the threads are waiting. > > Paul > > > -Original Message- > > From: Junjie Ding [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, May 15, 2002 11:28 AM > > To: [EMAIL PROTECTED] > > Subject: [JBoss-user] Anyway to clean memory usage after run jboss? > > > > > > I am running JBoss in Redhat linux 7.1(Linux 2.4.2-2), using > > jdk1.3.1_01 and > > JBoss-2.4.4_Tomcat-4.0.1. > > > > The problem I have is JBoss doesn't release all the memory it > > took after I > > ran it > > and my application. The memory it takes increases as more > > beans I use in my > > application > > but it doesn't release them. Even if I shut down JBoss. The > > only work around > > I have now > > is restart the machine, which is ridiculous. I'm not sure if > > this is because > > of memory > > leak in jboss or jdk1.3.1. > > > > Can anybody point me out if this is because of JBoss and the > > solution? Any > > related > > information will be helpful and appreciated! > > > > Thanks > > > > Epic > > > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > ___ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > ___ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Anyway to clean memory usage after run jboss?
Hi Paul, Yeah, that's what I thought. I killed all java process. I have no Timer or Threading Those memory is taken by nobody. Just seems like memory leak. As I remember, I didn't run into this problem when I was using Solaris 7. I just have this problem recently when I move to Linux. And there is another issue. I downloaded JBoss3.0 yesterday and tried to deploy my application there, just trying to compile and deploy. The memory usage goes up in the deploy process Any suggestion? Thanks a lot, Junjie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Paul Cody Sent: Wednesday, May 15, 2002 12:01 PM To: 'Junjie Ding'; [EMAIL PROTECTED] Subject: RE: [JBoss-user] Anyway to clean memory usage after run jboss? What do you mean by "does not release memory"? You should never have to restart the machine, this is completely unnecessary. Just kill the java process that is running JBoss. If your application is not shutting down cleanly, think about any threads that you may be creating, esp things like java.util.Timer or interaction with the JMX Timer service. If necessary, you can run a debugger to see where the threads are waiting. Paul > -Original Message- > From: Junjie Ding [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 15, 2002 11:28 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Anyway to clean memory usage after run jboss? > > > I am running JBoss in Redhat linux 7.1(Linux 2.4.2-2), using > jdk1.3.1_01 and > JBoss-2.4.4_Tomcat-4.0.1. > > The problem I have is JBoss doesn't release all the memory it > took after I > ran it > and my application. The memory it takes increases as more > beans I use in my > application > but it doesn't release them. Even if I shut down JBoss. The > only work around > I have now > is restart the machine, which is ridiculous. I'm not sure if > this is because > of memory > leak in jboss or jdk1.3.1. > > Can anybody point me out if this is because of JBoss and the > solution? Any > related > information will be helpful and appreciated! > > Thanks > > Epic > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyway to clean memory usage after run jboss?
To the person (thinking of ) having problems with his linux box: Can you please send an output from your, vmstat, ps, top, swapon -s ?? Can you read threaded apps ps output?? Are you sure your jboss shuts down properly?? (without leaving any threads running)?? If your app just fires an expensive DB operation, and then kills itself, or you shutdown jboss, the DB process will continue to eat up memory and cpu cycles. Thoroughly examine your system. Can you please be more specific of your setup?? Machine??, Database?? Also, upgrade to kernel 2.4.9-31 by redhat (also an upgrade to redhat 7.2 would be nice) (Note RedHat 7.3 is at stores). >From my experience it is much much safer,faster,BETTER to use the blackdown port than the one SUN gives. Achilleas ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyway to clean memory usage after run jboss?
we had some problems with too many files being opened by the java process. you can find out the number of open files by giving. cat /proc/sys/fs/file-nr This wil give a result like 2448183 8192 where 2448 are the currently allocated file handles, 183 is the number of file handles are not used and 8192 is the maximum number that can be opened. so for the above number, the number of files used are 2448 - 183 = 2265. just try running a script that monitors these values. This might be one reason. Regards, Nagarajan. On Thursday 16 May 2002 16:12, you wrote: > I have the same problem and i work with SUSE 7.2 and > JBoss-2.4.4_Tomcat-3.2.3. > My application is same the petstore 1.1.2 but when i do several Tx., my > server lost performance, > lost network connection and need restart my machine > Another person have the same problem? > > Jaime > > - Original Message - > From: "Junjie Ding" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, May 15, 2002 1:28 PM > Subject: [JBoss-user] Anyway to clean memory usage after run jboss? > > > I am running JBoss in Redhat linux 7.1(Linux 2.4.2-2), using jdk1.3.1_01 > > and > > > JBoss-2.4.4_Tomcat-4.0.1. > > > > The problem I have is JBoss doesn't release all the memory it took after > > I ran it > > and my application. The memory it takes increases as more beans I use in > > my > > > application > > but it doesn't release them. Even if I shut down JBoss. The only work > > around > > > I have now > > is restart the machine, which is ridiculous. I'm not sure if this is > > because > > > of memory > > leak in jboss or jdk1.3.1. > > > > Can anybody point me out if this is because of JBoss and the solution? > > Any related > > information will be helpful and appreciated! > > > > Thanks > > > > Epic > > > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > ___ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyway to clean memory usage after run jboss?
I have the same problem and i work with SUSE 7.2 and JBoss-2.4.4_Tomcat-3.2.3. My application is same the petstore 1.1.2 but when i do several Tx., my server lost performance, lost network connection and need restart my machine Another person have the same problem? Jaime - Original Message - From: "Junjie Ding" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 15, 2002 1:28 PM Subject: [JBoss-user] Anyway to clean memory usage after run jboss? > I am running JBoss in Redhat linux 7.1(Linux 2.4.2-2), using jdk1.3.1_01 and > JBoss-2.4.4_Tomcat-4.0.1. > > The problem I have is JBoss doesn't release all the memory it took after I > ran it > and my application. The memory it takes increases as more beans I use in my > application > but it doesn't release them. Even if I shut down JBoss. The only work around > I have now > is restart the machine, which is ridiculous. I'm not sure if this is because > of memory > leak in jboss or jdk1.3.1. > > Can anybody point me out if this is because of JBoss and the solution? Any > related > information will be helpful and appreciated! > > Thanks > > Epic > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyway to clean memory usage after run jboss?
Junjie, Neglect if you already knew this. Just adding to what Paul said. Hit ctrl + Esc on your key board and you will be able to see all the processes running on your RedHat 7.1. Select all relevant java processes and kill them mercilessly :-) Rajesh On Thursday 16 May 2002 00:31, Paul Cody wrote: > What do you mean by "does not release memory"? You should never have to > restart the machine, this is completely unnecessary. Just kill the java > process that is running JBoss. If your application is not shutting down > cleanly, think about any threads that you may be creating, esp things like > java.util.Timer or interaction with the JMX Timer service. If necessary, > you can run a debugger to see where the threads are waiting. > > Paul > > > -Original Message- > > From: Junjie Ding [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, May 15, 2002 11:28 AM > > To: [EMAIL PROTECTED] > > Subject: [JBoss-user] Anyway to clean memory usage after run jboss? > > > > > > I am running JBoss in Redhat linux 7.1(Linux 2.4.2-2), using > > jdk1.3.1_01 and > > JBoss-2.4.4_Tomcat-4.0.1. > > > > The problem I have is JBoss doesn't release all the memory it > > took after I > > ran it > > and my application. The memory it takes increases as more > > beans I use in my > > application > > but it doesn't release them. Even if I shut down JBoss. The > > only work around > > I have now > > is restart the machine, which is ridiculous. I'm not sure if > > this is because > > of memory > > leak in jboss or jdk1.3.1. > > > > Can anybody point me out if this is because of JBoss and the > > solution? Any > > related > > information will be helpful and appreciated! > > > > Thanks > > > > Epic > > > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > ___ > > Have big pipes? SourceForge.net is looking for download mirrors. We supply > the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Anyway to clean memory usage after run jboss?
What do you mean by "does not release memory"? You should never have to restart the machine, this is completely unnecessary. Just kill the java process that is running JBoss. If your application is not shutting down cleanly, think about any threads that you may be creating, esp things like java.util.Timer or interaction with the JMX Timer service. If necessary, you can run a debugger to see where the threads are waiting. Paul > -Original Message- > From: Junjie Ding [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 15, 2002 11:28 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-user] Anyway to clean memory usage after run jboss? > > > I am running JBoss in Redhat linux 7.1(Linux 2.4.2-2), using > jdk1.3.1_01 and > JBoss-2.4.4_Tomcat-4.0.1. > > The problem I have is JBoss doesn't release all the memory it > took after I > ran it > and my application. The memory it takes increases as more > beans I use in my > application > but it doesn't release them. Even if I shut down JBoss. The > only work around > I have now > is restart the machine, which is ridiculous. I'm not sure if > this is because > of memory > leak in jboss or jdk1.3.1. > > Can anybody point me out if this is because of JBoss and the > solution? Any > related > information will be helpful and appreciated! > > Thanks > > Epic > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ___ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user