Peggy
Peggy

Reputation: 395

specifying the amount of ram in eclipse for java projects

Where in Eclipse's Run Configuration can I specify for the project to run using 3G of my ram? and how do I do it? (what is the flag or command?)

Upvotes: 2

Views: 576

Answers (1)

David Hofmann
David Hofmann

Reputation: 5775

In Run Configurations, you go to the Arguments Tab, and then add to the "VM arguments" text field

-Xmx3g

That will run your program with a max of 3 GBytes of heap

Upvotes: 4

Related Questions