title: Problem allocating heap space over 4 GB when calling java "from Python"
body: <p>I am using using os.system call from python to run jar file.
  The jar file requires large heap space and thus i am allocating 4 Gb heap space using Xmx.
  When i execute the command 
  "java -Xms4096m -Xmx4096m -jar camXnet.jar net.txt" 
  from command line it executes properly, however when i call it from a python program via os.system, it works only if memory allocated is less than 4Gb, otherwise it fails to execute.
  Any solutions?</p>
  
  <p>By fails to execute i mean that A command window appears indicating that os.system has been called and then it disappears, i will check for the error code if any being returned. however no problems are encountered if xmx,xms are set to lower value.</p>
  
  <p>Ok i checked both version and there is a difference The one being called via python is Java HotSpot Client VM mixed mode,sharing while one being called via normal command line is Java HotSpot 64 bit server</p>
  
  <p>How do make os.system in python call the correct one that is the 64 bit server.</p>
  
  <p>UPDATE: I tried using subprocess module as yet the version of java return is same as that from os.system</p>