To confirm and to get a little more info, you could try running with -verbosegc to see how much time is really being spent in GC and how the amount of available memory evolves. On 16/10/06, Frank Haefemeier <[email protected]> wrote:
Hi,
Am Di, den 17.10.2006 schrieb Smith, Nathan um 0:11:
Dear xwiki-users,
We are getting a Java exception when saving a 7MB attachment. The attachment appears to be attached properly, since it appears in the attachment list and can be downloaded after the error. However, after attaching four or five files the server becomes so unresponsive that a restart is required. Configuration Info:
OS: Windows 2000 Server RAM: 1GB JDK: 1.5.0_8 App Server: JBoss 4.0.4 Database: MySQL 4.1.21
Note that JBoss is run with -Xmx 512M, and increasing that to -Xmx 1024M has no effect.
To set the max memory of a java VM to the maximum of the physical space isn't a good idea. I'm not sure how windows react, but under linux the machine is going under big pressure and works only with the swap daemon. Last time I tried this our linux server has a short-time load of >38 :-(.
To get an idea what the real problem is, isn't easy. Not in all cases the error message is correct and heap space the problem.
If you have the possibility try more physical memory in your machine. For a server 1 GB is not very much. If this doesn't help or not possible you have to investigate more time in the analysis of log messages of the garbage collector. You get more information about the memory usage if you switch on GC logs with -verbose:gc
Bye Frank
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws