+1 agree with chris
(I boosted to 4GB and I dont see any OOM's so getting more RAM always helps)

If you run JConsole you will see your java memory allocation over time (so
you can determine at what time which process is launched and consumes the
most memory)

M--


> Ok,
> 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 <[EMAIL PROTECTED]> 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@tomcat.apache.org
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Thanks
> Arun George
>


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to