<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>java heap size error</title>
  <link rel="alternate" href="https://tis.xsede.org/c/message_boards/find_thread?p_l_id=&amp;threadId=1147903" />
  <subtitle>java heap size error</subtitle>
  <entry>
    <title>RE: java heap size error</title>
    <link rel="alternate" href="https://tis.xsede.org/c/message_boards/find_message?p_l_id=&amp;messageId=2129330" />
    <author>
      <name>bill barren</name>
    </author>
    <id>https://tis.xsede.org/c/message_boards/find_message?p_l_id=&amp;messageId=2129330</id>
    <updated>2019-03-21T10:13:37Z</updated>
    <published>2019-03-21T10:13:37Z</published>
    <summary type="html">There is not enough virtual memory space requested by an application thus the application fails to start. This usually happens during the application startup phase. Applications reserve a large amount of virtual memory for the JVM heap space during the startup phase. Java on Windows uses an initial size of 16 Megabyte and a maximum of 64 Megabyte.&lt;br /&gt;&lt;br /&gt;Most of the time you can fix this problem by uninstalling the Java runtime and then reinstalling it all over again. You can also try increasing the amount of system memory allocated to the &lt;a href="http://net-informations.com/java/intro/jvm.htm"&gt;Java virtual machine&lt;/a&gt; by setting an environment variable.&lt;br /&gt;&lt;br /&gt;Open the Control Panel&lt;br /&gt;Go to System&lt;br /&gt;Go to Advanced Systems Properties&lt;br /&gt;Then Environment Variables&lt;br /&gt;In System Variables, click Add&lt;br /&gt;New Variable Name: _JAVA_OPTIONS&lt;br /&gt;New Variable Value: -Xmx512M&lt;br /&gt;Click OK</summary>
    <dc:creator>bill barren</dc:creator>
    <dc:date>2019-03-21T10:13:37Z</dc:date>
  </entry>
  <entry>
    <title>java heap size error</title>
    <link rel="alternate" href="https://tis.xsede.org/c/message_boards/find_message?p_l_id=&amp;messageId=1147902" />
    <author>
      <name>Victor Shum</name>
    </author>
    <id>https://tis.xsede.org/c/message_boards/find_message?p_l_id=&amp;messageId=1147902</id>
    <updated>2016-02-14T02:47:36Z</updated>
    <published>2016-02-14T02:47:36Z</published>
    <summary type="html">Dear forum users, &lt;br /&gt;&lt;br /&gt;On using the java -Xmx1200m comand to run a jar file, or using the build.sh to compile to a target jar file I got the error: &lt;br /&gt;Error occurred during initialization of VM&lt;br /&gt;Could not reserve enough space for object heap&lt;br /&gt;Error: Could not create the Java Virtual Machine.&lt;br /&gt;Error: A fatal exception has occurred. Program will exit.&lt;br /&gt;&lt;br /&gt;I tried reducing the heap with the flag -mx128m or -Xmx64m to no avail. &lt;br /&gt;&lt;br /&gt;Any idea what is happening and how would I get over this error?  Many Thanks!  -Victor&lt;br /&gt;&lt;br /&gt;BTW if I omit the -mx128m flag I had this version error for java (I posted this question posted a week ago https://www.xsede.org/group/xup/forums/-/message_boards/message/1142488): &lt;br /&gt;Exception in thread &amp;#034;main&amp;#034; java.lang.UnsupportedClassVersionError: edu/cmu/ark/QuestionAsker : Unsupported major.minor version 52.0&lt;br /&gt;at java.lang.ClassLoader.defineClass1(Native Method)&lt;br /&gt;at java.lang.ClassLoader.defineClass(ClassLoader.java:800)&lt;br /&gt;at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)&lt;br /&gt;at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)&lt;br /&gt;at java.net.URLClassLoader.access$100(URLClassLoader.java:71)&lt;br /&gt;at java.net.URLClassLoader$1.run(URLClassLoader.java:361)&lt;br /&gt;at java.net.URLClassLoader$1.run(URLClassLoader.java:355)&lt;br /&gt;at java.security.AccessController.doPrivileged(Native Method)&lt;br /&gt;at java.net.URLClassLoader.findClass(URLClassLoader.java:354)&lt;br /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:425)&lt;br /&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)&lt;br /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:358)&lt;br /&gt;at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)</summary>
    <dc:creator>Victor Shum</dc:creator>
    <dc:date>2016-02-14T02:47:36Z</dc:date>
  </entry>
</feed>

