Increase heap size used by jEdit?
Submitted by Thursday, 10 February, 2005 - 22:24
on
I tried editing many files at once in jEdit v4.2, and got an error message from jEdit that there was not enough heap allocated. Back in the days of version 4.1, a simple fix was to increase the maximum heap size via Programs > jEdit > "Set jEdit Parameters" > "Command line options for Java executable", and setting it to "-mx64m". But now that Windows launcher and other handy things appeared to be missing in the new version, it seems I have to pass "-mx64m" as a parameter to jEdit.
So I tried adding -mx64m to the shortcut created during jEdit installation. (By the way, C:\_a\ is where I install all of my applications.) So...
C:\_a\Java\JRE\bin\javaw.exe -jar C:\_a\jEdit\jedit.jar
... which works fine, becomes...
C:\_a\Java\JRE\bin\javaw.exe -jar C:\_a\jEdit\jedit.jar -mx64m
... which doesn't work at all. When I enter that at the command line, nothing happens. I'm guessing that Java sees -mx64m as an invalid parameter, but unhelpfully does not report that.
I know I am able to pass parameters to jEdit, e.g.:
C:\_a\Java\JRE\bin\javaw.exe -jar C:\_a\jEdit\jedit.jar x.html
... opens the file just fine. But...
C:\_a\Java\JRE\bin\javaw.exe -jar C:\_a\jEdit\jedit.jar x.html -mx64m
... fails.
Any suggestions on how to get it to work?
So I tried adding -mx64m to the shortcut created during jEdit installation. (By the way, C:\_a\ is where I install all of my applications.) So...
C:\_a\Java\JRE\bin\javaw.exe -jar C:\_a\jEdit\jedit.jar
... which works fine, becomes...
C:\_a\Java\JRE\bin\javaw.exe -jar C:\_a\jEdit\jedit.jar -mx64m
... which doesn't work at all. When I enter that at the command line, nothing happens. I'm guessing that Java sees -mx64m as an invalid parameter, but unhelpfully does not report that.
I know I am able to pass parameters to jEdit, e.g.:
C:\_a\Java\JRE\bin\javaw.exe -jar C:\_a\jEdit\jedit.jar x.html
... opens the file just fine. But...
C:\_a\Java\JRE\bin\javaw.exe -jar C:\_a\jEdit\jedit.jar x.html -mx64m
... fails.
Any suggestions on how to get it to work?