Thursday, 12 February 2009

java.lang.OutOfMemoryError

This is a common problem when you are creating a new Java development environment, probably using an application server. You should configure the Server/Application launch configuration to escape to this, for example in Eclipse:

  1. Open Launch Configuration
  2. Select "Arguments" tab
  3. In "VM Arguments" paste this "-XX:MaxPermSize=256m -Xms128m -Xmx256m " and configure the amount of memory to your needs.
OK, this is not an important post, this is something common for Java developers. I wrote this so I didn´t have to Google it the next time I need it =D .

No comments: