Memory allocation for Java Webstart Application -


i'm using java webstart application called blast2go i'm running problems memory allocation. needs load large data set memory, i've been trying allocate 3-6gb application. however, no matter set max heap size, uses 455mb (as indicated message bar: 'memory usage: xxmb of 455mb'). i've tried setting reasonable levels (1024 mb), still 455mb allocation.

any ideas?

btw, i'm using ubuntu 10.04 32-bit 24gb memory, 8 procs.

update: here jnlp provide. same result when edit values of initial-heap-size , max-heap-size attributes.

<jnlp spec="1.0+" codebase="http://bioinfo.cipf.es/blast2go/webstart" href="http://bioinfo.cipf.es/blast2go/webstart/makejnlp.php?mem=3072"> <information> <title>blast2go 3072m</title> <vendor>cipf - upv - ivia</vendor> <homepage href="http://www.blast2go.org"/> <description>blast2go 3072m</description> <description kind="short">blast2go 3072m</description> <icon href="splash.gif"/> <offline-allowed/> </information> <security> <all-permissions/> </security> <resources> <j2se version="1.5+" initial-heap-size="64m" max-heap-size="3072m"/> <jar href="ext/blast2go.jar"/> <jar href="ext/biojava-1.3.1.jar"/> <jar href="ext/jfreechart-1.0.10.jar"/> <jar href="ext/mysql-connector-java-3.0.11-stable-bin.jar"/> <jar href="ext/zvtm.jar"/> <jar href="ext/jakarta-regexp-1.4.jar"/> <jar href="ext/jcommon-1.0.13.jar"/> <jar href="ext/simpat1.1.jar"/> <jar href="ext/itext-2.1.1.jar"/> <jar href="ext/jdom/activation.jar"/> <jar href="ext/jdom/ant.jar"/> <jar href="ext/jdom/jaxen-core.jar"/> <jar href="ext/jdom/jaxen-jdom.jar"/> <jar href="ext/jdom/jdom.jar"/> <jar href="ext/jdom/mail.jar"/> <jar href="ext/jdom/saxpath.jar"/> <jar href="ext/jdom/xalan.jar"/> <jar href="ext/jdom/xerces.jar"/> <jar href="ext/jdom/xml-apis.jar"/> <jar href="ext/interpro/commons-cli-1.0.jar"/> <jar href="ext/interpro/commons-cli.jar"/> <jar href="ext/interpro/freefluo.jar"/> <jar href="ext/interpro/servlet.jar"/> <jar href="ext/interpro/wsinterproscan.jar"/> <jar href="ext/axis_1_4/axis-ant.jar"/> <jar href="ext/axis_1_4/axis.jar"/> <jar href="ext/axis_1_4/commons-discovery-0.2.jar"/> <jar href="ext/axis_1_4/commons-logging-1.0.4.jar"/> <jar href="ext/axis_1_4/jaxrpc.jar"/> <jar href="ext/axis_1_4/keggapi.jar"/> <jar href="ext/axis_1_4/log4j-1.2.8.jar"/> <jar href="ext/axis_1_4/saaj.jar"/> <jar href="ext/axis_1_4/wsdl4j-1.5.1.jar"/> <jar href="ext/axis2/activation-1.1.jar"/> <jar href="ext/axis2/annogen-0.1.0.jar"/> <jar href="ext/axis2/axiom-api-1.2.2.jar"/> <jar href="ext/axis2/axiom-dom-1.2.2.jar"/> <jar href="ext/axis2/axiom-impl-1.2.2.jar"/> <jar href="ext/axis2/axis2-adb-1.1.1.jar"/> <jar href="ext/axis2/axis2-adb-codegen-1.1.1.jar"/> <jar href="ext/axis2/axis2-codegen-1.1.1.jar"/> <jar href="ext/axis2/axis2-java2wsdl-1.1.1.jar"/> <jar href="ext/axis2/axis2-jaxbri-1.1.1.jar"/> <jar href="ext/axis2/axis2-jibx-1.1.1.jar"/> <jar href="ext/axis2/axis2-kernel-1.1.1.jar"/> <jar href="ext/axis2/axis2-saaj-1.1.1.jar"/> <jar href="ext/axis2/axis2-soapmonitor-1.1.1.jar"/> <jar href="ext/axis2/axis2-spring-1.1.1.jar"/> <jar href="ext/axis2/axis2-tools-1.1.1.jar"/> <jar href="ext/axis2/axis2-xmlbeans-1.1.1.jar"/> <jar href="ext/axis2/backport-util-concurrent-2.2.jar"/> <jar href="ext/axis2/commons-codec-1.3.jar"/> <jar href="ext/axis2/commons-fileupload-1.1.1.jar"/> <jar href="ext/axis2/commons-httpclient-3.0.1.jar"/> <jar href="ext/axis2/commons-io-1.2.jar"/> <jar href="ext/axis2/commons-logging-1.1.jar"/> <jar href="ext/axis2/geronimo-spec-jms-1.1-rc4.jar"/> <jar href="ext/axis2/jakarta-httpcore-4.0-alpha2.jar"/> <jar href="ext/axis2/jaxb-api-2.0.2.jar"/> <jar href="ext/axis2/jaxb-impl-2.0.2.jar"/> <jar href="ext/axis2/jaxb-xjc-2.0.2.jar"/> <jar href="ext/axis2/jaxen-1.1-beta-10.jar"/> <jar href="ext/axis2/jibx-bind-1.1.3.jar"/> <jar href="ext/axis2/jibx-run-1.1.3.jar"/> <jar href="ext/axis2/mail-1.4.jar"/> <jar href="ext/axis2/neethi-2.0.jar"/> <jar href="ext/axis2/servletapi-2.3.jar"/> <jar href="ext/axis2/stax-api-1.0.1.jar"/> <jar href="ext/axis2/woden-1.0.0m6.jar"/> <jar href="ext/axis2/wsdl4j-1.6.2.jar"/> <jar href="ext/axis2/wstx-asl-3.2.0.jar"/> <jar href="ext/axis2/xalan-2.7.0.jar"/> <jar href="ext/axis2/xbean-2.2.0.jar"/> <jar href="ext/axis2/xercesimpl-2.8.1.jar"/> <jar href="ext/axis2/xml-apis-1.3.03.jar"/> <jar href="ext/axis2/xmlschema-1.2.jar"/> <jar href="ext/batik/batik-anim.jar"/> <jar href="ext/batik/batik-awt-util.jar"/> <jar href="ext/batik/batik-bridge.jar"/> <jar href="ext/batik/batik-codec.jar"/> <jar href="ext/batik/batik-css.jar"/> <jar href="ext/batik/batik-dom.jar"/> <jar href="ext/batik/batik-extension.jar"/> <jar href="ext/batik/batik-ext.jar"/> <jar href="ext/batik/batik-gui-util.jar"/> <jar href="ext/batik/batik-gvt.jar"/> <jar href="ext/batik/batik-parser.jar"/> <jar href="ext/batik/batik-script.jar"/> <jar href="ext/batik/batik-svg-dom.jar"/> <jar href="ext/batik/batik-svggen.jar"/> <jar href="ext/batik/batik-swing.jar"/> <jar href="ext/batik/batik-transcoder.jar"/> <jar href="ext/batik/batik-util.jar"/> <jar href="ext/batik/batik-xml.jar"/> <jar href="ext/batik/js.jar"/> <jar href="ext/batik/pdf-transcoder.jar"/> <jar href="ext/batik/xalan-2.6.0.jar"/> <jar href="ext/batik/xerces_2_5_0.jar"/> <jar href="ext/batik/xml-apis-ext.jar"/> <jar href="ext/batik/xml-apis.jar"/> </resources> <application-desc main-class="es.blast2go.prog.mainprog"/> </jnlp> 

update: tried changing href attribute in root jnlp tag , got strange message on terminal. wonder if java re-downloading jnlp url each time , ignoring attempts edit jnlp. there way can prevent this?

> javaws blast2go3gb.jnlp  error occurred during initialization of vm ccoouulldd  nnoott  crreesaetrev et heen ojuagvha  svpiarcteu aflo rm aocbhjiencet.  heap 

final update: turns out problem java version. got expected behavior when downloaded , used sun java.

if running 32-bit linux, can run 32-bit jvm limited 4 gb memory per instance. believe case if have more visible kernel.

if really, need lot of memory in single jvm need go 64-bit.


edit: java webstart not open sourced openjdk alternative implementation used. try download , use sun java instead. should enough download , unzip jdk, , run bin/javaws foo.jnlp.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -