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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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: [email protected]
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >> --
> >> 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: [email protected]
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Thanks
Arun George