Skip to main content

why my glassfish server V2 is cosumming to much memory

4 replies [Last post]
jurato
Offline
Joined: 2008-06-11

hello every body, i had a question.. i got glassfish v2 running in my linux box, it has 512Mb in RAM, when i run the top command, it shows that the java process is consuming 50% of memory.

Why does java proccess consumes to much memory?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jurato
Offline
Joined: 2008-06-11

thanks folks, i really appreciate your information...

Wim V

Hi,

It is normal the jvm will reserve an amount of extended memory when you
start it. You probably use -Xmx256m in your jvm-toptions (or 512). You can
try changing this value, but I would surely not recommend putting anything
less then 256 there for glassfish, as you could run into heap size problems
with your own applications (the default is 512). If you want to use opensso,
you even need to set this value to 1024.
( see
http://download.java.net/general/opensso/stable/openssov1-build4/B4-Rele...
otes.html )
Also, in a production environment, I would advise to put at least 1024 meg
of extra ram in your server. (to avoid the expensive context swaps you will
be having)

wim

-----Original Message-----
From: glassfish@javadesktop.org [mailto:glassfish@javadesktop.org]
Sent: donderdag 12 juni 2008 3:09
To: users@glassfish.dev.java.net
Subject: why my glassfish server V2 is cosumming to much memory

hello every body, i had a question.. i got glassfish v2 running in my linux
box, it has 512Mb in RAM, when i run the top command, it shows that the java
process is consuming 50% of memory.

Why does java proccess consumes to much memory?
[Message sent by forum member 'jurato' (jurato)]

http://forums.java.net/jive/thread.jspa?messageID=279838

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

Alexis Moussine-Pouchkine

256Mb isn't a whole lot for an application server.
I'd be careful when using 'top' as it may report "reserved" memory vs.
memory actually used.
jinfo should be pretty accurate.
-Alexis

On Jun 12, 2008, at 3:09, glassfish@javadesktop.org wrote:

> hello every body, i had a question.. i got glassfish v2 running in
> my linux box, it has 512Mb in RAM, when i run the top command, it
> shows that the java process is consuming 50% of memory.
>
> Why does java proccess consumes to much memory?
> [Message sent by forum member 'jurato' (jurato)]
>
> http://forums.java.net/jive/thread.jspa?messageID=279838
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net

John Clingan

Make sure you are looking at the Resident Set Size column (or "RES" or
"RSize" depending on platform).

On Jun 11, 2008, at 10:42 PM, Alexis Moussine-Pouchkine wrote:

> 256Mb isn't a whole lot for an application server.
> I'd be careful when using 'top' as it may report "reserved" memory
> vs. memory actually used.
> jinfo should be pretty accurate.
> -Alexis
>
> On Jun 12, 2008, at 3:09, glassfish@javadesktop.org wrote:
>
>> hello every body, i had a question.. i got glassfish v2 running in
>> my linux box, it has 512Mb in RAM, when i run the top command, it
>> shows that the java process is consuming 50% of memory.
>>
>> Why does java proccess consumes to much memory?
>> [Message sent by forum member 'jurato' (jurato)]
>>
>> http://forums.java.net/jive/thread.jspa?messageID=279838
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
>> For additional commands, e-mail: users-help@glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net