Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IntelliJ: How to increase memory: Java heap space error

 
Dave Nice
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm running IntelliJ 12.1.2 with Maven and am trying to use the Parameterized.class from Junit 4.11 to read in a .csv file containing 500 records and perform tests on each parameter (parameter is simply a relative url onto which I append a base url). I am getting a java.lang.OutOfMemoryError: Java heap space error.

I believe I have already increased the memory size in Info.plist and also Maven runner to max sizes but still no joy. Can anyone post the recommended / optimal solution for IntelliJ 12? Please note I am a beginner, so I don't know if what I am trying is already going to ask too much of resources.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you run that application from IntelliJ?
 
Dave Nice
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaikiran Pai wrote:How do you run that application from IntelliJ?
I use the r/h panel to run the maven goals so, 'Site', 'Clean', 'Deploy' etc...
Is this any different from running using command line?
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See if this helps then http://www.jetbrains.com/idea/webhelp/tuning-intellij-idea.html

Is this any different from running using command line?


The difference depends on what triggers the application and that decides where the memory configurations need to be done.
 
Dave Nice
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaikiran Pai wrote:See if this helps then http://www.jetbrains.com/idea/webhelp/tuning-intellij-idea.html

Is this any different from running using command line?


The difference depends on what triggers the application and that decides where the memory configurations need to be done.
OK thanks. Maybe I will try running direct from command line instead but I will try the link you mention too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic