Pages

Eclipse, Linux and ‘PermGen space error’

You are working on a GNU/Linux system with at least a 2.6.16 Kernel and are tired of getting ‘PermGen Space’ errors with Eclipse, whatever value you choose for -Xms, -Xmx and -XX:MaxPermSize settings ?

An explanation could be that Eclipse fails to claim memory that is not really used by the system, but simply cached.

A solution is to flush cache before launching Eclipse by issuing the following command (as root) in a terminal :

sync; echo 3 > /proc/sys/vm/drop_caches

Hope it helps

1 comment to Eclipse, Linux and ‘PermGen space error’

  • biloo

    Thanx a lot !!

    That just saves me from rebooting my PC every time I want to start working for real :D

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>