|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 | Next > |
|
|
Re: Native Library Not foundThat worked finally with the increase in PermGen space.
Filip, I am a bit concerned about my server memory. See my top (not mine ofcourse) top - 09:38:18 up 9:16, 3 users, load average: 0.27, 0.18, 0.10 Tasks: 72 total, 2 running, 70 sleeping, 0 stopped, 0 zombie Cpu(s): 49.1%us, 2.0%sy, 0.0%ni, 48.9%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2074972k total, 429424k used, 1645548k free, 73608k buffers Swap: 6072528k total, 0k used, 6072528k free, 189848k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9770 root 25 0 491m 93m 35m R 102 4.6 0:13.64 java 1 root 15 0 2908 1844 524 S 0 0.1 0:01.41 init ================================================================= top - 09:38:33 up 9:16, 3 users, load average: 0.43, 0.22, 0.11 Tasks: 72 total, 2 running, 70 sleeping, 0 stopped, 0 zombie Cpu(s): 48.7%us, 1.5%sy, 0.0%ni, 49.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2074972k total, 475488k used, 1599484k free, 73632k buffers Swap: 6072528k total, 0k used, 6072528k free, 189816k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9770 root 25 0 504m 138m 35m R 100 6.8 0:28.66 java 1 root 15 0 2908 1844 524 S 0 0.1 0:01.41 init ================================================================= top - 09:38:42 up 9:16, 3 users, load average: 0.52, 0.25, 0.12 Tasks: 72 total, 2 running, 70 sleeping, 0 stopped, 0 zombie Cpu(s): 48.8%us, 1.0%sy, 0.0%ni, 50.2%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2074972k total, 509384k used, 1565588k free, 73648k buffers Swap: 6072528k total, 0k used, 6072528k free, 189800k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9770 root 25 0 512m 166m 31m R 100 8.2 0:37.63 java 1 root 15 0 2908 1844 524 S 0 0.1 0:01.41 init =================================================================== top - 09:39:03 up 9:17, 3 users, load average: 0.45, 0.25, 0.12 Tasks: 72 total, 1 running, 71 sleeping, 0 stopped, 0 zombie Cpu(s): 47.9%us, 0.8%sy, 0.0%ni, 51.1%id, 0.0%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 2074972k total, 518932k used, 1556040k free, 73680k buffers Swap: 6072528k total, 0k used, 6072528k free, 189784k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9770 root 25 0 529m 175m 31m S 96 8.7 0:41.00 java 4468 mysql 15 0 127m 27m 5336 S 1 1.3 0:14.33 mysqld ================================================================ top - 09:39:21 up 9:17, 3 users, load average: 0.42, 0.25, 0.13 Tasks: 72 total, 2 running, 70 sleeping, 0 stopped, 0 zombie Cpu(s): 4.7%us, 0.3%sy, 0.0%ni, 95.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 2074972k total, 536952k used, 1538020k free, 73808k buffers Swap: 6072528k total, 0k used, 6072528k free, 189896k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 9770 root 25 0 561m 192m 31m S 9 9.5 0:47.93 java 4468 mysql 15 0 127m 27m 5336 S 1 1.3 0:14.90 mysqld 1 root 15 0 2908 1844 524 S 0 0.1 0:01.41 init See Mem: line and see the second one . It rises so fast . See at what rate. 429424k 475488k 509384k 518932k 536952k So at the end of the day, it will be end of the server :-). End Of Servers , can be a new film. What is this PermGen space. Why does not it get garbage collected. Is there anyway I can tell tomcat to suggest the VM a garbage collection more often than the default garbage collection algorithm does. Is there any declerative way of doing, xml, .sh? On 10/11/07, Filip Hanik - Dev Lists <devlists@...> wrote: > > >java.lang.OutOfMemoryError: PermGen space > > just increase your permgen size > > -XX:MaxPermSize=256m > > Filip > > Arun wrote: > > Nope no use. Same error on JDk1.5 > > > > INFO: Server startup in 39569 ms > > Oct 10, 2007 11:05:31 PM > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler process > > SEVERE: Error reading request, ignored > > java.lang.OutOfMemoryError: PermGen space > > Exception in thread "http-80-1" java.lang.NullPointerException > > at java.util.concurrent.ConcurrentLinkedQueue.offer( > > ConcurrentLinkedQueue.java:180) > > at > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer( > > Http11Protocol.java:530) > > at > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer( > > Http11Protocol.java:547) > > at > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( > > Http11Protocol.java:611) > > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( > > JIoEndpoint.java:447) > > at java.lang.Thread.run(Thread.java:595) > > Oct 10, 2007 11:06:29 PM > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler process > > SEVERE: Error reading request, ignored > > java.lang.OutOfMemoryError: PermGen space > > Exception in thread "http-80-2" java.lang.NullPointerException > > at java.util.concurrent.ConcurrentLinkedQueue.offer( > > ConcurrentLinkedQueue.java:180) > > at > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer( > > Http11Protocol.java:530) > > at > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer( > > Http11Protocol.java:547) > > at > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( > > Http11Protocol.java:611) > > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run( > > JIoEndpoint.java:447) > > at java.lang.Thread.run(Thread.java:595) > > Exception in thread "DefaultQuartzScheduler_Worker-3" > > java.lang.OutOfMemoryError: PermGen space > > Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread" > > java.lang.OutOfMemoryError: PermGen space > > > > My server is starting up and OOME is stopping my container. > > Oh god it is same with all JDK? Should I try upgrading tomcat to 6.0.14 > > > > > > > > On 10/10/07, Arun <arun.george.1981@...> wrote: > > > >> Chris, > >> > >> Let me try installing Jdk1.5 and make same version on both sides. But I > >> need to use jdk1.6 as I need some of the features. > >> > >> > >> On 10/10/07, Christopher Schultz <chris@...> wrote: > >> > >>> -----BEGIN PGP SIGNED MESSAGE----- > >>> Hash: SHA1 > >>> > >>> Arun, > >>> > >>> Arun wrote: > >>> > >>>> Ok, > >>>> Help!! I do not have an OutOfMemory erro when running tomcat from > >>>> > >>> myeclipse. > >>> > >>>> I am running JDK1.5 and tomcat6. > >>>> > >>>> But in my ubuntu I have jdk1.6 and tomcat6.0 and I have an > OutOfMemory > >>>> problem why? > >>>> > >>> Compare your memory settings between your Eclipse environment and your > >>> Ubuntu environment. Are they different? What are the specific errors > >>> (which heap is busting?) > >>> > >>> > >>>> When the server starts up itself the contianer shuts down and logs > the > >>>> OutOfMemory error. > >>>> > >>> Wow, that sucks. Does your application even try to start? Is the > >>> QuartzScheduler running from your own application, or do you have it > in > >>> a separate one or something else? > >>> > >>> > >>>> But why did not my local tomcat does not complain.? > >>>> > >>> Uhh... different settings? Different memory sizes? Lots of things. > >>> > >>> - -chris > >>> > >>> -----BEGIN PGP SIGNATURE----- > >>> Version: GnuPG v1.4.7 (MingW32) > >>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > >>> > >>> iD8DBQFHDRLJ9CaO5/Lv0PARApasAJ9++i+29BbQiS4Pxym/DF/AaayxpgCeIchC > >>> /9NcH97ppRO+BHCufm6QuPQ= > >>> =6+Bb > >>> -----END PGP SIGNATURE----- > >>> > >>> --------------------------------------------------------------------- > >>> To start a new topic, e-mail: users@... > >>> To unsubscribe, e-mail: users-unsubscribe@... > >>> For additional commands, e-mail: users-help@... > >>> > >>> > >>> > >> -- > >> Thanks > >> Arun George > >> > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > No virus found in this incoming message. > > Checked by AVG Free Edition. > > Version: 7.5.488 / Virus Database: 269.14.6/1060 - Release Date: > 10/9/2007 4:43 PM > > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@... > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > -- Thanks Arun George |
|
|
Re: Native Library Not foundAnd finally after 2 days of struggle I got my new server up.
Check ibaaz.com, that is what I was trying to bring up. Thanks for the help. Being said that, I am going to use a heap profiler to see what is happening in JVMs head. And see if I can match its intelligence. On 10/11/07, Arun <arun.george.1981@...> wrote: > > That worked finally with the increase in PermGen space. > Filip, > I am a bit concerned about my server memory. > See my top (not mine ofcourse) > > > > top - 09:38:18 up 9:16, 3 users, load average: 0.27, 0.18, 0.10 > Tasks: 72 total, 2 running, 70 sleeping, 0 stopped, 0 zombie > Cpu(s): 49.1%us, 2.0%sy, 0.0%ni, 48.9%id, 0.0%wa, 0.0%hi, 0.0%si, > 0.0%st > Mem: 2074972k total, 429424k used, 1645548k free, 73608k buffers > Swap: 6072528k total, 0k used, 6072528k free, 189848k cached > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 491m 93m 35m R 102 4.6 0:13.64 java > 1 root 15 0 2908 1844 524 S 0 0.1 0:01.41 init > > ================================================================= > > top - 09:38:33 up 9:16, 3 users, load average: 0.43, 0.22, 0.11 > Tasks: 72 total, 2 running, 70 sleeping, 0 stopped, 0 zombie > Cpu(s): 48.7%us, 1.5%sy, 0.0%ni, 49.8%id, 0.0%wa, 0.0%hi, 0.0%si, > 0.0%st > Mem: 2074972k total, 475488k used, 1599484k free, 73632k buffers > Swap: 6072528k total, 0k used, 6072528k free, 189816k cached > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 504m 138m 35m R 100 6.8 0:28.66 java > 1 root 15 0 2908 1844 524 S 0 0.1 0:01.41 init > > > ================================================================= > > top - 09:38:42 up 9:16, 3 users, load average: 0.52, 0.25, 0.12 > Tasks: 72 total, 2 running, 70 sleeping, 0 stopped, 0 zombie > Cpu(s): 48.8%us, 1.0%sy, 0.0%ni, 50.2%id, 0.0%wa, 0.0%hi, 0.0%si, > 0.0%st > Mem: 2074972k total, 509384k used, 1565588k free, 73648k buffers > Swap: 6072528k total, 0k used, 6072528k free, 189800k cached > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 512m 166m 31m R 100 8.2 0:37.63 java > 1 root 15 0 2908 1844 524 S 0 0.1 0:01.41 init > > =================================================================== > > top - 09:39:03 up 9:17, 3 users, load average: 0.45, 0.25, 0.12 > Tasks: 72 total, 1 running, 71 sleeping, 0 stopped, 0 zombie > Cpu(s): 47.9%us, 0.8%sy, 0.0%ni, 51.1%id, 0.0%wa, 0.0%hi, 0.2%si, > 0.0%st > Mem: 2074972k total, 518932k used, 1556040k free, 73680k buffers > Swap: 6072528k total, 0k used, 6072528k free, 189784k cached > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 529m 175m 31m S 96 8.7 0:41.00 java > 4468 mysql 15 0 127m 27m 5336 S 1 1.3 0:14.33 mysqld > > ================================================================ > > top - 09:39:21 up 9:17, 3 users, load average: 0.42, 0.25, 0.13 > Tasks: 72 total, 2 running, 70 sleeping, 0 stopped, 0 zombie > Cpu(s): 4.7%us, 0.3%sy, 0.0%ni, 95.0%id, 0.0%wa, 0.0%hi, 0.0%si, > 0.0%st > Mem: 2074972k total, 536952k used, 1538020k free, 73808k buffers > Swap: 6072528k total, 0k used, 6072528k free, 189896k cached > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 561m 192m 31m S 9 9.5 0:47.93 java > 4468 mysql 15 0 127m 27m 5336 S 1 1.3 0:14.90 mysqld > 1 root 15 0 2908 1844 524 S 0 0.1 0:01.41 init > > > See Mem: line and see the second one . It rises so fast . See at what > rate. > 429424k > 475488k > 509384k > 518932k > 536952k > So at the end of the day, it will be end of the server :-). End Of Servers > , can be a new film. > > What is this PermGen space. Why does not it get garbage collected. > Is there anyway I can tell tomcat to suggest the VM a garbage collection > more often than the default garbage collection algorithm does. Is there any > declerative way of doing, xml, .sh? > > > > > > On 10/11/07, Filip Hanik - Dev Lists <devlists@...> wrote: > > > > >java.lang.OutOfMemoryError: PermGen space > > > > just increase your permgen size > > > > -XX:MaxPermSize=256m > > > > Filip > > > > Arun wrote: > > > Nope no use. Same error on JDk1.5 > > > > > > INFO: Server startup in 39569 ms > > > Oct 10, 2007 11:05:31 PM > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandlerprocess > > > SEVERE: Error reading request, ignored > > > java.lang.OutOfMemoryError: PermGen space > > > Exception in thread "http-80-1" java.lang.NullPointerException > > > at java.util.concurrent.ConcurrentLinkedQueue.offer ( > > > ConcurrentLinkedQueue.java:180) > > > at > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer( > > > Http11Protocol.java:530) > > > at > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer( > > > Http11Protocol.java:547) > > > at > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( > > > Http11Protocol.java:611) > > > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run ( > > > JIoEndpoint.java:447) > > > at java.lang.Thread.run(Thread.java:595) > > > Oct 10, 2007 11:06:29 PM > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandlerprocess > > > SEVERE: Error reading request, ignored > > > java.lang.OutOfMemoryError: PermGen space > > > Exception in thread "http-80-2" java.lang.NullPointerException > > > at java.util.concurrent.ConcurrentLinkedQueue.offer( > > > ConcurrentLinkedQueue.java :180) > > > at > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer( > > > Http11Protocol.java:530) > > > at > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer( > > > Http11Protocol.java:547) > > > at > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( > > > Http11Protocol.java:611) > > > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run ( > > > JIoEndpoint.java:447) > > > at java.lang.Thread.run(Thread.java:595) > > > Exception in thread "DefaultQuartzScheduler_Worker-3" > > > java.lang.OutOfMemoryError: PermGen space > > > Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread" > > > java.lang.OutOfMemoryError: PermGen space > > > > > > My server is starting up and OOME is stopping my container. > > > Oh god it is same with all JDK? Should I try upgrading tomcat to > > 6.0.14 > > > > > > > > > > > > On 10/10/07, Arun <arun.george.1981@...> wrote: > > > > > >> Chris, > > >> > > >> Let me try installing Jdk1.5 and make same version on both sides. But > > I > > >> need to use jdk1.6 as I need some of the features. > > >> > > >> > > >> On 10/10/07, Christopher Schultz <chris@...> > > wrote: > > >> > > >>> -----BEGIN PGP SIGNED MESSAGE----- > > >>> Hash: SHA1 > > >>> > > >>> Arun, > > >>> > > >>> Arun wrote: > > >>> > > >>>> Ok, > > >>>> Help!! I do not have an OutOfMemory erro when running tomcat from > > >>>> > > >>> myeclipse. > > >>> > > >>>> I am running JDK1.5 and tomcat6. > > >>>> > > >>>> But in my ubuntu I have jdk1.6 and tomcat6.0 and I have an > > OutOfMemory > > >>>> problem why? > > >>>> > > >>> Compare your memory settings between your Eclipse environment and > > your > > >>> Ubuntu environment. Are they different? What are the specific errors > > > > >>> (which heap is busting?) > > >>> > > >>> > > >>>> When the server starts up itself the contianer shuts down and logs > > the > > >>>> OutOfMemory error. > > >>>> > > >>> Wow, that sucks. Does your application even try to start? Is the > > >>> QuartzScheduler running from your own application, or do you have it > > in > > >>> a separate one or something else? > > >>> > > >>> > > >>>> But why did not my local tomcat does not complain.? > > >>>> > > >>> Uhh... different settings? Different memory sizes? Lots of things. > > >>> > > >>> - -chris > > >>> > > >>> -----BEGIN PGP SIGNATURE----- > > >>> Version: GnuPG v1.4.7 (MingW32) > > >>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > >>> > > >>> iD8DBQFHDRLJ9CaO5/Lv0PARApasAJ9++i+29BbQiS4Pxym/DF/AaayxpgCeIchC > > >>> /9NcH97ppRO+BHCufm6QuPQ= > > >>> =6+Bb > > >>> -----END PGP SIGNATURE----- > > >>> > > >>> > > --------------------------------------------------------------------- > > >>> To start a new topic, e-mail: users@... > > >>> To unsubscribe, e-mail: users-unsubscribe@... > > >>> For additional commands, e-mail: users-help@... > > >>> > > >>> > > >>> > > >> -- > > >> Thanks > > >> Arun George > > >> > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > No virus found in this incoming message. > > > Checked by AVG Free Edition. > > > Version: 7.5.488 / Virus Database: 269.14.6/1060 - Release Date: > > 10/9/2007 4:43 PM > > > > > > > > > --------------------------------------------------------------------- > > To start a new topic, e-mail: users@... > > To unsubscribe, e-mail: users-unsubscribe@... > > For additional commands, e-mail: users-help@... > > > > > > > -- > Thanks > Arun George -- Thanks Arun George |
|
|
Re: Native Library Not foundWhy I did not test this before is because, I donot thought this was a
soultion though. Tomorrow another developer add something to the product and there we go. I will be asked "Hey guy increase the memory of the server, that may be the problem, last time it was!!". Then I might need to empoy a guy to do that . ;-) But now I think some programs just needs more memory.. But I have a question to ask you guys. Should not the tomcat server handle my webappliations memory request. Its not a huge weapp. Its just a simple product and my memory request are handled well by my local tomcat.I did not tweak any xml or .sh, both on my remote server and on my local server. Is it a reason of different versions of software running. I do not think there is a compatibility issue with jdk and tomcat anyways. The problem could be because the default VM setting for tomcat in windows is different from the default VM settings in Linux. Thats my conclusion after all. On 10/11/07, Arun <arun.george.1981@...> wrote: > > That worked finally with the increase in PermGen space. > Filip, > I am a bit concerned about my server memory. > See my top (not mine ofcourse) > > > > top - 09:38:18 up 9:16, 3 users, load average: 0.27, 0.18, 0.10 > Tasks: 72 total, 2 running, 70 sleeping, 0 stopped, 0 zombie > Cpu(s): 49.1%us, 2.0%sy, 0.0%ni, 48.9%id, 0.0%wa, 0.0%hi, 0.0%si, > 0.0%st > Mem: 2074972k total, 429424k used, 1645548k free, 73608k buffers > Swap: 6072528k total, 0k used, 6072528k free, 189848k cached > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 491m 93m 35m R 102 4.6 0:13.64 java > 1 root 15 0 2908 1844 524 S 0 0.1 0:01.41 init > > ================================================================= > > top - 09:38:33 up 9:16, 3 users, load average: 0.43, 0.22, 0.11 > Tasks: 72 total, 2 running, 70 sleeping, 0 stopped, 0 zombie > Cpu(s): 48.7%us, 1.5%sy, 0.0%ni, 49.8%id, 0.0%wa, 0.0%hi, 0.0%si, > 0.0%st > Mem: 2074972k total, 475488k used, 1599484k free, 73632k buffers > Swap: 6072528k total, 0k used, 6072528k free, 189816k cached > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 504m 138m 35m R 100 6.8 0:28.66 java > 1 root 15 0 2908 1844 524 S 0 0.1 0:01.41 init > > > ================================================================= > > top - 09:38:42 up 9:16, 3 users, load average: 0.52, 0.25, 0.12 > Tasks: 72 total, 2 running, 70 sleeping, 0 stopped, 0 zombie > Cpu(s): 48.8%us, 1.0%sy, 0.0%ni, 50.2%id, 0.0%wa, 0.0%hi, 0.0%si, > 0.0%st > Mem: 2074972k total, 509384k used, 1565588k free, 73648k buffers > Swap: 6072528k total, 0k used, 6072528k free, 189800k cached > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 512m 166m 31m R 100 8.2 0:37.63 java > 1 root 15 0 2908 1844 524 S 0 0.1 0:01.41 init > > =================================================================== > > top - 09:39:03 up 9:17, 3 users, load average: 0.45, 0.25, 0.12 > Tasks: 72 total, 1 running, 71 sleeping, 0 stopped, 0 zombie > Cpu(s): 47.9%us, 0.8%sy, 0.0%ni, 51.1%id, 0.0%wa, 0.0%hi, 0.2%si, > 0.0%st > Mem: 2074972k total, 518932k used, 1556040k free, 73680k buffers > Swap: 6072528k total, 0k used, 6072528k free, 189784k cached > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 529m 175m 31m S 96 8.7 0:41.00 java > 4468 mysql 15 0 127m 27m 5336 S 1 1.3 0:14.33 mysqld > > ================================================================ > > top - 09:39:21 up 9:17, 3 users, load average: 0.42, 0.25, 0.13 > Tasks: 72 total, 2 running, 70 sleeping, 0 stopped, 0 zombie > Cpu(s): 4.7%us, 0.3%sy, 0.0%ni, 95.0%id, 0.0%wa, 0.0%hi, 0.0%si, > 0.0%st > Mem: 2074972k total, 536952k used, 1538020k free, 73808k buffers > Swap: 6072528k total, 0k used, 6072528k free, 189896k cached > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 561m 192m 31m S 9 9.5 0:47.93 java > 4468 mysql 15 0 127m 27m 5336 S 1 1.3 0:14.90 mysqld > 1 root 15 0 2908 1844 524 S 0 0.1 0:01.41 init > > > See Mem: line and see the second one . It rises so fast . See at what > rate. > 429424k > 475488k > 509384k > 518932k > 536952k > So at the end of the day, it will be end of the server :-). End Of Servers > , can be a new film. > > What is this PermGen space. Why does not it get garbage collected. > Is there anyway I can tell tomcat to suggest the VM a garbage collection > more often than the default garbage collection algorithm does. Is there any > declerative way of doing, xml, .sh? > > > > > > On 10/11/07, Filip Hanik - Dev Lists <devlists@...> wrote: > > > > >java.lang.OutOfMemoryError: PermGen space > > > > just increase your permgen size > > > > -XX:MaxPermSize=256m > > > > Filip > > > > Arun wrote: > > > Nope no use. Same error on JDk1.5 > > > > > > INFO: Server startup in 39569 ms > > > Oct 10, 2007 11:05:31 PM > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandlerprocess > > > SEVERE: Error reading request, ignored > > > java.lang.OutOfMemoryError: PermGen space > > > Exception in thread "http-80-1" java.lang.NullPointerException > > > at java.util.concurrent.ConcurrentLinkedQueue.offer ( > > > ConcurrentLinkedQueue.java:180) > > > at > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer( > > > Http11Protocol.java:530) > > > at > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer( > > > Http11Protocol.java:547) > > > at > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( > > > Http11Protocol.java:611) > > > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run ( > > > JIoEndpoint.java:447) > > > at java.lang.Thread.run(Thread.java:595) > > > Oct 10, 2007 11:06:29 PM > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandlerprocess > > > SEVERE: Error reading request, ignored > > > java.lang.OutOfMemoryError: PermGen space > > > Exception in thread "http-80-2" java.lang.NullPointerException > > > at java.util.concurrent.ConcurrentLinkedQueue.offer( > > > ConcurrentLinkedQueue.java :180) > > > at > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer( > > > Http11Protocol.java:530) > > > at > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler$1.offer( > > > Http11Protocol.java:547) > > > at > > > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process( > > > Http11Protocol.java:611) > > > at org.apache.tomcat.util.net.JIoEndpoint$Worker.run ( > > > JIoEndpoint.java:447) > > > at java.lang.Thread.run(Thread.java:595) > > > Exception in thread "DefaultQuartzScheduler_Worker-3" > > > java.lang.OutOfMemoryError: PermGen space > > > Exception in thread "DefaultQuartzScheduler_QuartzSchedulerThread" > > > java.lang.OutOfMemoryError: PermGen space > > > > > > My server is starting up and OOME is stopping my container. > > > Oh god it is same with all JDK? Should I try upgrading tomcat to > > 6.0.14 > > > > > > > > > > > > On 10/10/07, Arun <arun.george.1981@...> wrote: > > > > > >> Chris, > > >> > > >> Let me try installing Jdk1.5 and make same version on both sides. But > > I > > >> need to use jdk1.6 as I need some of the features. > > >> > > >> > > >> On 10/10/07, Christopher Schultz <chris@...> > > wrote: > > >> > > >>> -----BEGIN PGP SIGNED MESSAGE----- > > >>> Hash: SHA1 > > >>> > > >>> Arun, > > >>> > > >>> Arun wrote: > > >>> > > >>>> Ok, > > >>>> Help!! I do not have an OutOfMemory erro when running tomcat from > > >>>> > > >>> myeclipse. > > >>> > > >>>> I am running JDK1.5 and tomcat6. > > >>>> > > >>>> But in my ubuntu I have jdk1.6 and tomcat6.0 and I have an > > OutOfMemory > > >>>> problem why? > > >>>> > > >>> Compare your memory settings between your Eclipse environment and > > your > > >>> Ubuntu environment. Are they different? What are the specific errors > > > > >>> (which heap is busting?) > > >>> > > >>> > > >>>> When the server starts up itself the contianer shuts down and logs > > the > > >>>> OutOfMemory error. > > >>>> > > >>> Wow, that sucks. Does your application even try to start? Is the > > >>> QuartzScheduler running from your own application, or do you have it > > in > > >>> a separate one or something else? > > >>> > > >>> > > >>>> But why did not my local tomcat does not complain.? > > >>>> > > >>> Uhh... different settings? Different memory sizes? Lots of things. > > >>> > > >>> - -chris > > >>> > > >>> -----BEGIN PGP SIGNATURE----- > > >>> Version: GnuPG v1.4.7 (MingW32) > > >>> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > >>> > > >>> iD8DBQFHDRLJ9CaO5/Lv0PARApasAJ9++i+29BbQiS4Pxym/DF/AaayxpgCeIchC > > >>> /9NcH97ppRO+BHCufm6QuPQ= > > >>> =6+Bb > > >>> -----END PGP SIGNATURE----- > > >>> > > >>> > > --------------------------------------------------------------------- > > >>> To start a new topic, e-mail: users@... > > >>> To unsubscribe, e-mail: users-unsubscribe@... > > >>> For additional commands, e-mail: users-help@... > > >>> > > >>> > > >>> > > >> -- > > >> Thanks > > >> Arun George > > >> > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > No virus found in this incoming message. > > > Checked by AVG Free Edition. > > > Version: 7.5.488 / Virus Database: 269.14.6/1060 - Release Date: > > 10/9/2007 4:43 PM > > > > > > > > > --------------------------------------------------------------------- > > To start a new topic, e-mail: users@... > > To unsubscribe, e-mail: users-unsubscribe@... > > For additional commands, e-mail: users-help@... > > > > > > > -- > Thanks > Arun George -- Thanks Arun George |
|
|
Re: Native Library Not foundArun wrote:
> That worked finally with the increase in PermGen space. > I am a bit concerned about my server memory. > See my top (not mine ofcourse) > > top - 09:38:18 up 9:16, 3 users, load average: 0.27, 0.18, 0.10 > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 491m 93m 35m R 102 4.6 0:13.64 java > > top - 09:38:33 up 9:16, 3 users, load average: 0.43, 0.22, 0.11 > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 504m 138m 35m R 100 6.8 0:28.66 java > > top - 09:38:42 up 9:16, 3 users, load average: 0.52, 0.25, 0.12 > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 512m 166m 31m R 100 8.2 0:37.63 java > > top - 09:39:03 up 9:17, 3 users, load average: 0.45, 0.25, 0.12 > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 529m 175m 31m S 96 8.7 0:41.00 java > > top - 09:39:21 up 9:17, 3 users, load average: 0.42, 0.25, 0.13 > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 9770 root 25 0 561m 192m 31m S 9 9.5 0:47.93 java > > > See Mem: line and see the second one . It rises so fast . See at what rate. Well, look at the CPU consumption at the same period - so your Tomcat is working on something. Looking at the amount of CPU time consumed, it could even be still running the application startup (Tomcat by itself can take something like 20 seconds of pure CPU time, on some machine architectures at least -- and here the CPU time usage is running from 13 to 48 seconds - so it's still too early to say whether the rise in memory usage will continue or not). > What is this PermGen space. Why does not it get garbage collected. PermGen is the holding space for the program code in your currently active classes. So, looks like whatever you're using has quite a large active codebase. > Is there anyway I can tell tomcat to suggest the VM a garbage collection > more often than the default garbage collection algorithm does. Is there any > declerative way of doing, xml, .sh? Even PermGen is cleaned in current JVM versions -- but classes can only be unloaded when there's no reference to the class within the JVM. And garbage collection overall is done when needed: it is definitely done before JVM throws an out of memory error. There's quite a lot of tunables for the JVM (including garbage collection), but pretty much you should trust the defaults (unless you have experience to actually distrust the defaults because of some specific feature in your application or runtime environment). -- ..Juha --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Native Library Not foundI am replying once again, as I thought I need more help on these.
top - 15:49:32 up 2 days, 21:33, 1 user, load average: 0.26, 0.28, 0.20 Tasks: 57 total, 2 running, 55 sleeping, 0 stopped, 0 zombie Cpu(s): 4.5%us, 0.5%sy, 0.0%ni, 94.5%id, 0.0%wa, 0.0%hi, 0.5%si, 0.0%st Mem: 2074972k total, 2019180k used, 55792k free, 228732k buffers Swap: 6072528k total, 108k used, 6072420k free, 1383868k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 12496 root 18 0 971m 285m 12m S 9 14.1 165:55.34 java 4423 mysql 15 0 129m 28m 5404 S 2 1.4 67:49.96 mysqld 1 root 18 0 2912 1848 524 S 0 0.1 0:01.44 init 2 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/0 This is my machines top. I am using tomcat 6 and it has eaten all my memory. Only 56 Mb reamains. I have a 2GB memory. I have added a connection pool using commons-dbcp and thought that will reduce the probs. What is your suggestion. As I told there is a scheduler running on every minute. Looks like I have some memory leak. Otherwise why does my machine uses this memory this much. I have an autobuild script running everyday which checkouts from sourceforge cvs , stops the servers, build it and redeploy and start tomcat. Yet , today I looked at my machine , and Ah ! here we goes. I have not used any tweaks in xml.Should I tune the server to production mode. What is the soultion ? Why does not the objects get garbage colllected.? On 10/11/07, Juha Laiho <Juha.Laiho@...> wrote: > > Arun wrote: > > That worked finally with the increase in PermGen space. > > > I am a bit concerned about my server memory. > > See my top (not mine ofcourse) > > > > top - 09:38:18 up 9:16, 3 users, load average: 0.27, 0.18, 0.10 > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > > 9770 root 25 0 491m 93m 35m R 102 4.6 0:13.64 java > > > > top - 09:38:33 up 9:16, 3 users, load average: 0.43, 0.22, 0.11 > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > > 9770 root 25 0 504m 138m 35m R 100 6.8 0:28.66 java > > > > top - 09:38:42 up 9:16, 3 users, load average: 0.52, 0.25, 0.12 > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > > 9770 root 25 0 512m 166m 31m R 100 8.2 0:37.63 java > > > > top - 09:39:03 up 9:17, 3 users, load average: 0.45, 0.25, 0.12 > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > > 9770 root 25 0 529m 175m 31m S 96 8.7 0:41.00 java > > > > top - 09:39:21 up 9:17, 3 users, load average: 0.42, 0.25, 0.13 > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > > 9770 root 25 0 561m 192m 31m S 9 9.5 0:47.93 java > > > > > > See Mem: line and see the second one . It rises so fast . See at what > rate. > > Well, look at the CPU consumption at the same period - so your Tomcat > is working on something. Looking at the amount of CPU time consumed, > it could even be still running the application startup (Tomcat by itself > can take something like 20 seconds of pure CPU time, on some machine > architectures at least -- and here the CPU time usage is running from > 13 to 48 seconds - so it's still too early to say whether the rise > in memory usage will continue or not). > > > What is this PermGen space. Why does not it get garbage collected. > > PermGen is the holding space for the program code in your currently > active classes. So, looks like whatever you're using has quite a large > active codebase. > > > Is there anyway I can tell tomcat to suggest the VM a garbage > collection > > more often than the default garbage collection algorithm does. Is there > any > > declerative way of doing, xml, .sh? > > Even PermGen is cleaned in current JVM versions -- but classes can only > be unloaded when there's no reference to the class within the JVM. > And garbage collection overall is done when needed: it is definitely > done before JVM throws an out of memory error. There's quite a lot of > tunables for the JVM (including garbage collection), but pretty much > you should trust the defaults (unless you have experience to actually > distrust the defaults because of some specific feature in your application > or runtime environment). > -- > ..Juha > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@... > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > -- Thanks Arun George |
|
|
Re: Native Library Not found-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Arun, Arun wrote: > I am replying once again, as I thought I need more help on these. > > top - 15:49:32 up 2 days, 21:33, 1 user, load average: 0.26, 0.28, 0.20 > Tasks: 57 total, 2 running, 55 sleeping, 0 stopped, 0 zombie > Cpu(s): 4.5%us, 0.5%sy, 0.0%ni, 94.5%id, 0.0%wa, 0.0%hi, 0.5%si, > 0.0%st > Mem: 2074972k total, 2019180k used, 55792k free, 228732k buffers > Swap: 6072528k total, 108k used, 6072420k free, 1383868k cached > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > 12496 root 18 0 971m 285m 12m S 9 14.1 165:55.34 java > 4423 mysql 15 0 129m 28m 5404 S 2 1.4 67:49.96 mysqld > 1 root 18 0 2912 1848 524 S 0 0.1 0:01.44 init > 2 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/0 > This is my machines top. I am using tomcat 6 and it has eaten all my memory. > Only 56 Mb reamains. Actually, the java process is only taking 285MB of physical memory. The process has allocated just under 1GB of memory, but is not using it at all (since virtual - resident cannot possibly fit into your 108k of used swap, you can tell that nothing has been swapped-out). Some other process has the rest of your 2GB physical memory tied up. top even tells you that your java process is only taking up 14% of your memory. What's the problem? > I have a 2GB memory. I have added a connection pool > using commons-dbcp and thought that will reduce the probs. How many connections do you have configured? If you were using one connection before, and now you're pooling connections, then you probably are using /more/ memory than before. > As I told there is a [Quartz] scheduler running on every minute. > > Looks > like I have some memory leak. Maybe, maybe not. Does your application eventually crash? If so, how? If you turn off the scheduler, does the memory problem go away? What does Java report as the free/total/ma heap values (hint: look at the java.lang.Runtime class). > Otherwise why does my machine uses this memory > this much. I have an autobuild script running everyday which checkouts from > sourceforge cvs , stops the servers, build it and redeploy and start tomcat. So, you are experiencing an OOM before an entire day goes by? Wow. I've never heard of rolling reboots on non-MS-Windows machines. ;) > I have not used any tweaks in xml.Should I tune the server to production > mode. What is the solution? Why does not the objects get garbage > collected.? You have received many, /many/ suggestions from other posters as well as myself. You have followed none of them. We ask you to provide more information and you do not. Instead, you notify us that you are trying some other strategy (switching JVM version, etc.). Finally, you changed your PermGen heap allocation and everything was working again. Are you saying that now you are having problems again? Or, are you simply worried about the amount of memory taken by your application? Java applications simply take up a lot of memory. Complex applications take up a lot of memory. Complex Java applications take even /more/ memory. Webapps count as complex applications. Maybe you just need a bunch of RAM to run your application. Have you considered that? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHFhOP9CaO5/Lv0PARAtb9AJ9E6a+oOpSMWVDTdyMY2I7RYn5U1QCdHgVO BUSCpyDFzkEBOitqqH2UQgo= =pc4x -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@... To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Native Library Not foundOk,
I have taken all the posts seriously. I have not ran into a solution. Let me work on the suggestions you provided. I resolved the OOME , but I am worried about scaling users in my server, if tomcat consumes this much memory. As you said since tomcat is not taking the memory I will further investigate as to why the memory gets used this much. Thanks again for all the help provided. Sorry for me being so obtrusive. On 10/17/07, Christopher Schultz <chris@...> wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Arun, > > Arun wrote: > > I am replying once again, as I thought I need more help on these. > > > > top - 15:49:32 up 2 days, 21:33, 1 user, load average: 0.26, 0.28, > 0.20 > > Tasks: 57 total, 2 running, 55 sleeping, 0 stopped, 0 zombie > > Cpu(s): 4.5%us, 0.5%sy, 0.0%ni, 94.5%id, 0.0%wa, 0.0%hi, 0.5%si, > > 0.0%st > > Mem: 2074972k total, 2019180k used, 55792k free, 228732k buffers > > Swap: 6072528k total, 108k used, 6072420k free, 1383868k cached > > > > PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND > > 12496 root 18 0 971m 285m 12m S 9 14.1 165:55.34 java > > 4423 mysql 15 0 129m 28m 5404 S 2 1.4 67:49.96 mysqld > > 1 root 18 0 2912 1848 524 S 0 0.1 0:01.44 init > > 2 root RT 0 0 0 0 S 0 0.0 0:00.00 migration/0 > > This is my machines top. I am using tomcat 6 and it has eaten all my > memory. > > Only 56 Mb reamains. > > Actually, the java process is only taking 285MB of physical memory. The > process has allocated just under 1GB of memory, but is not using it at > all (since virtual - resident cannot possibly fit into your 108k of used > swap, you can tell that nothing has been swapped-out). > > Some other process has the rest of your 2GB physical memory tied up. top > even tells you that your java process is only taking up 14% of your > memory. What's the problem? > > > I have a 2GB memory. I have added a connection pool > > using commons-dbcp and thought that will reduce the probs. > > How many connections do you have configured? If you were using one > connection before, and now you're pooling connections, then you probably > are using /more/ memory than before. > > > As I told there is a [Quartz] scheduler running on every minute. > > > > Looks > > like I have some memory leak. > > Maybe, maybe not. Does your application eventually crash? If so, how? If > you turn off the scheduler, does the memory problem go away? What does > Java report as the free/total/ma heap values (hint: look at the > java.lang.Runtime class). > > > Otherwise why does my machine uses this memory > > this much. I have an autobuild script running everyday which checkouts > from > > sourceforge cvs , stops the servers, build it and redeploy and start > tomcat. > > So, you are experiencing an OOM before an entire day goes by? Wow. I've > never heard of rolling reboots on non-MS-Windows machines. ;) > > > I have not used any tweaks in xml.Should I tune the server to production > > mode. What is the solution? Why does not the objects get garbage > > collected.? > > You have received many, /many/ suggestions from other posters as well as > myself. You have followed none of them. We ask you to provide more > information and you do not. Instead, you notify us that you are trying > some other strategy (switching JVM version, etc.). Finally, you changed > your PermGen heap allocation and everything was working again. > > Are you saying that now you are having problems again? Or, are you > simply worried about the amount of memory taken by your application? > Java applications simply take up a lot of memory. Complex applications > take up a lot of memory. Complex Java applications take even /more/ > memory. Webapps count as complex applications. Maybe you just need a > bunch of RAM to run your application. Have you considered that? > > - -chris > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFHFhOP9CaO5/Lv0PARAtb9AJ9E6a+oOpSMWVDTdyMY2I7RYn5U1QCdHgVO > BUSCpyDFzkEBOitqqH2UQgo= > =pc4x > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@... > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > -- Thanks Arun George |
| < Prev | 1 - 2 | Next > |
| Free embeddable forum powered by Nabble | Forum Help |