In two quite different environments the very same jEdit version (4.5.2 and using the
same jedit4.5.2install.jar in both cases and not using the Mac integration plugin
on the Mac) behaves very differently, when opening the same large SQL file.
On Mac OS X (10.6.8) jEdit used approx. 400 MB of heap memory for opening the SQL
file, on Ubuntu (10.10) jEdit took 60 MB of heap memory for the same task. I\'ve attached
the SQL file (zipped). The problem is not simply with large files or with files that
have huge lines (eg. over 200000 character lines). I\'ve created such test files and
on both platforms jEdit consumed approx. the same amount of heap space.
Btw. I\'ve used jConsole to monitor heap usage in both cases.
I should also note that on Mac OS X jEdit was executed in a 64 bit Oracle JVM, and
on Ubuntu it was a 32 bit Oracle JVM. In both cases I used Oracle JRE 1.6.0.\*.
Of course in a 64 bit JRE the same app would eat more memory, but afaik it should
not be more than twice the memory used by the app on a 32 bit platform. So the huge
difference (6-7 times) in heap memory requirement to open the given SQL file should
not be explainable merely by the platform differences.
Any idea what might cause this?
Btw. when opening the SQL file, jEdit asked me whether I wanted to open it without
syntax highlighting, or with a simplified syntax highlight or with fulll syntax highlight.
I\'ve found that this choice does not affect required heap memory significantly in
either case.
If more info is needed (any debug logs, etc.), I\'d happy to provide them.
P.S.: Sourceforge does not allow attachments larger than 256K at the moment. And since
the problem occurs only with large files, I uploaded my test SQL file to somethere
else: http://dropcanvas.com/h7nbd
This will be only temporary (I guess dropcanvas won't keep my upload "forever"), but
if you suggest another method for sharing my test SQL file, I'll gladly upload it
again.
Submitted | muzso - 2012-07-21 20:36:47 | Assigned | |
---|---|---|---|
Priority | 5 | Labels | editor core |
Status | open | Group | normal bug |
Resolution | None |
2012-07-21 20:41:05 muzso |
I've tried this SQL file with the official jedit4.5.2install.dmg installer too (the one meant for Mac OS X), but got the same result. |
---|---|
2012-07-22 06:58:50 jarekczek |
Please repeat the test on both machines with -noplugins -nosettings
|
2012-07-23 21:15:46 muzso |
I've repeated the test in both environments (+ I added a Windows test too) with the
"-noplugins -nosettings" switches came up with quite the same results.
|
2012-09-05 18:41:34 thomasmey |
Method Chunk.layoutGlyphVector(Font, FontRenderContext, char\[\], int, int) eats up
all CPU and makes jEdit unusable for the file in above link in 5.1pre1, Fedora 17,
java 7.
|