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:
- Open Launch Configuration
- Select "Arguments" tab
- 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 .