On Tue, 23 Jan 2001, SERVE 'EM - Dan Coggeshall wrote:
> I am having the same problem, and I don't think it is a RAM issue,
> because I have 1GB, and the machine reports to only be using 5%.
> Does the JVM work within a memory sandbox, and if so, is there a way
> to increase that?
There are command line options to the java command that control the
heap size -- -ms to specify the initial size, and -mx to specify the
maximum size (I think I've sometimes seen -Xms and -Xmx, I'm not sure
what the difference is). To take advantage of them, though, your
servlet container has to allow you to, either by giving you a place to
specify them for the servlet container, or by allowing you to modify
the java call directly (e.g. if it's part of a shell script on a UNIX
system).
Now, be aware that OutOfMemoryError's could be indicative or memory
leaks in your code. Yes, Java can have memory leaks, if you're not
handling/disposing of references properly. So adding more memory may
not fix the problem, it may only delay it.
> SUBRATA SEN wrote:
>
> > Hi,
> > Will u please send me the details of the server.
> > I think u should increase the RAM in ur m/c.
> >
> > Thanks
> >
> > Subrata SEN
> >
> > --- "ANVEKAR U P (TTIL CGD)"
> > <[EMAIL PROTECTED]> wrote:
> > > hi
> > > i can just say that there are two
> > > threads running in the background
> > > you can kill those tasks .
> > > and re start the server.
> > > uday
> > >
> > > > -----Original Message-----
> > > > From: tpalanikumar [SMTP:[EMAIL PROTECTED]]
> > > > Sent: Monday, January 22, 2001 11:07 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Out of Memory Error in web server
> > > >
> > > > hi all
> > > > i am using java web server for servlets.some times
> > > the web server throws
> > > > an
> > > > out of memory error
> > > > so if it does then it's not servicing properly.i
> > > have to restart the
> > > > server.is there any way to prevent
> > > > this error.if so please suggest
> > > >
> > > > thanx in advance
> > > > palanikumar
> > > >
> > >
> >
>
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html