Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools incubator » Increase Eclipse heap size
Increase Eclipse heap size [message #675788] Wed, 01 June 2011 13:58 Go to next message
fixed-term.simon.braun is currently offline fixed-term.simon.braunFriend
Messages: 8
Registered: October 2010
Junior Member
Hi together,

I want to parse big XML-Files (32MB) with Xquery (small files work fine).
I always reveive the error: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
Then I changed -Xms and -Xmx in the eclipse.ini but nothing happend, I couldn't fix the problem even if I enter enough memory (1024MB). The parsing-process of Eclipse only takes to about 300MB and then it throws the error.
So in my opinion, only Eclipse gets the memory and not the parsing-process. (Nevertheless this amount should be enough for the parsing-process...)

So how can I change this?

Best regards,
Simon
Re: Increase Eclipse heap size [message #677335 is a reply to message #675788] Wed, 08 June 2011 08:15 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 176
Registered: July 2009
Senior Member
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<blockquote cite="mid:is5g1h$ucf$1@news.eclipse.org" type="cite">I
want to parse big XML-Files (32MB) with Xquery (small files work
fine).
<br>
I always reveive the error: Exception in thread "main"
java.lang.OutOfMemoryError: Java heap space
<br>
Then I changed -Xms and -Xmx in the eclipse.ini but nothing
happend, I couldn't fix the problem even if I enter enough memory
(1024MB). <br>
</blockquote>
<br>
I can not keep it straight on how to change VM argument parameters
... I also have had trouble sometimes getting "-Xmx" to "take". You
might try specifying it on the command line, such as "eclipse ...
-vmargs -Xmx1G and see if it makes a difference. <br>
<br>
And, the ultimate irony .... I was going to look for a link to
command line arguments, and found this link with a search service: <br>
<br>
<a class="moz-txt-link-freetext" href="http://help.eclipse.org/helios/topic/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html">http://help.eclipse.org/helios/topic/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html</a>
<br>
<br>
And, what did I get when I tried it? <br>
<br>
<h2>HTTP ERROR 500</h2>
<p>Problem accessing
/help/topic/org.eclipse.platform.doc.isv/reference/misc/runtime-options.html.
Reason:
</p>
<pre> INTERNAL_SERVER_ERROR</pre>
<h3>Caused by:</h3>
<pre>java.lang.OutOfMemoryError
at java.util.zip.InflaterInputStream.&lt;init&gt;(InflaterInputStream.java:96)
at java.util.zip.ZipFile$2.&lt;init&gt;(ZipFile.java:391)
at java.util.zip.ZipFile.getInputStream(ZipFile.java:362)
at java.util.zip.ZipFile.getInputStream(ZipFile.java:327)
at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleEntry.getInputStream(ZipBundleEntry.java:60)
at org.eclipse.osgi.framework.internal.core.BundleURLConnection.connect(BundleURLConnection.java:53)
at org.eclipse.osgi.framework.internal.core.BundleURLConnection.getInputStream(BundleURLConnection.java:99)
[...]


at java.net.URL.openStream(URL.java:1044)
</pre>
<br>
</body>
</html>
Re: Increase Eclipse heap size [message #677339 is a reply to message #677335] Wed, 08 June 2011 08:29 Go to previous messageGo to next message
David Williams is currently offline David WilliamsFriend
Messages: 176
Registered: July 2009
Senior Member
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 06/08/2011 04:15 AM, David Williams wrote:
<blockquote cite="mid:isnaic$94h$1@news.eclipse.org" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title></title>
<br>
<blockquote cite="mid:is5g1h$ucf$1@news.eclipse.org" type="cite">I
want to parse big XML-Files (32MB) with Xquery (small files work
fine). <br>
I always reveive the error: Exception in thread "main"
java.lang.OutOfMemoryError: Java heap space <br>
Then I changed -Xms and -Xmx in the eclipse.ini but nothing
happend, I couldn't fix the problem even if I enter enough
memory (1024MB). <br>
</blockquote>
<br>
</blockquote>
Oh, and .... thinking now about what you are trying to do ... you
probably need to set the vm arguments in one of the "run" launcher
configurations (that, I'm assuming, is created when you try to "run"
your xquery? <br>
<br>
</body>
</html>
Re: Increase Eclipse heap size [message #693897 is a reply to message #677335] Thu, 07 July 2011 13:09 Go to previous message
fixed-term.simon.braun is currently offline fixed-term.simon.braunFriend
Messages: 8
Registered: October 2010
Junior Member
>I can not keep it straight on how to change VM argument parameters
>... I also have had trouble sometimes getting "-Xmx" to "take". You
>might try specifying it on the command line, such as "eclipse ...
>-vmargs -Xmx1G and see if it makes a difference.

No, it doesn't make a difference.

>Oh, and .... thinking now about what you are trying to do ... you
>probably need to set the vm arguments in one of the "run" launcher
>configurations (that, I'm assuming, is created when you try to "run"
>your xquery?

Meanwhile I think, it is not passible to parse this big files.
(At least I don't know how Wink)
So I decided to split this large files into smaller ones and everything
just works fine.
Previous Topic:Multiple diagrams with JPA Diagram Editor
Next Topic:[JAX-WS] Encoding
Goto Forum:
  


Current Time: Thu Apr 25 10:31:20 GMT 2024

Powered by FUDForum. Page generated in 0.03906 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top