[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

Re: Out Of Memory?


On Tue, Sep 15 1998, Neal A. Dillman wrote:
> During a checkout of a (very) large project I get:
> 
> Exception occurred during event dispatching:
> java.lang.OutOfMemoryError
>         at java.io.BufferedReader.<init>(Compiled Code)
>         at java.io.BufferedReader.<init>(Compiled Code)
>         at com.ice.cvsc.CVSProject.copyFileAscii(Compiled Code)
>         at com.ice.cvsc.CVSProject.copyFile(Compiled Code)
> [ ... ]
>         at java.awt.EventDispatchThread.run(Compiled Code)
> 
> Does anyone have a suggestion?  The platform is hp-ux.

Well, at some point it would be useful to know if the memory being
consumed is necessary, or if we can free up some things.

That point aside, you need to look into the -mx and -ms options
used to start java. -mx is the max memory, -ms is the starting.
You might try something along the lines of:

   java -ms16m -mx64m -classpath ....

Which would up the maximum available memory to 64MB and start
the program out with 16MB.

tim.
Tim Endres, ICE Engineering, Inc.
   mailto: time@ice.com    http://www.ice.com
   "Usenet - A slow moving self parody." -- Peter Honeyman