On 2/8/11 12:10 PM, antares wrote:
Hi,
i need help.

Hi,
I am using mina 2.0.0 fo ra simple policy server. (see attachment)

It starts a server acceptor but it takes a lot of memory

before:

*             total       used       free     shared    buffers     cached
Mem:           924        287        636          0          0          0
-/+ buffers/cache:        287        636
Swap:            0          0          0*

after:
root@ve:/var/www/java/
PolicyServer# free -m

*             total       used       free     shared    buffers     cached
Mem:           924        633        290          0          0          0
-/+ buffers/cache:        633        290
Swap:            0          0          0*

about *420mb *so i cant start the other server because i get this error :

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

There is a way i can reduce the memory needed by mina ?
Mina per se does not 'need' a lot of memory. Your application just sucks up the memory. Fix your application, your problem should be resolved.

There are quite good memory profiler ot there, they could be handy...


--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to