jEdit Community - Resources for users of the jEdit Text Editor
Increase heap size used by jEdit?
Submitted by a992400 on Thursday, 10 February, 2005 - 22:24
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?
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
It's a JVM parameter, not a j
by Anonymous on Thu, 10/02/2005 - 22:35
It's a JVM parameter, not a jEdit one, so pass it to java or javaw, not jEdit:

C:\_a\Java\JRE\bin\javaw.exe -mx64m -jar C:\_a\jEdit\jedit.jar

-Ollie
 
"-reuseview" parameter
by a992400 on Fri, 11/02/2005 - 18:04
Thanks, Ollie, -mx64m worked!

I'm now trying to also use the "-reuseview" parameter, because that appears to be the one needed to prevent jEdit from starting up a new instance for each file opened via command line or Windows Explorer. So I tried...

C:\_a\Java\JRE\bin\javaw.exe -mx64m -jar C:\_a\jEdit\jedit.jar -reuseview

twice (i.e., running it two times from the command line), and it unfortunately starts up a second instance. Any ideas what I'm doing wrong? (I haven't added any Registry entries for jEdit. Only difference from vanilla default installation is putting jEdit in C:\_a\ instead of "Program Files" or wherever it defaults to.)
User login
Browse archives
« November 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   101634
Context Free Art (*.cfdg)   0.31   46062
BBEdit scheme   1.0   18601
JBuilder scheme   .001   18502
ColdFusion scheme   1.0   18031
R Edit Mode - extensive version   0.1   17481
Advanced HTML edit mode   1.0   16213
Matlab Edit Mode   1.0   16075
jEdit XP icons   1.0   15236
XP icons for jEdit   1.1   14300