java - Stanford CoreNLP, spring web service, Netbeans 8.0.1 and Out of memory -
java - Stanford CoreNLP, spring web service, Netbeans 8.0.1 and Out of memory -
i trying run web service provide interface parsing sentences rdf triples. far able run simple spring app 1 controller , displaying magic "hello world".
i run problem when add together corenlp.
severe: adding annotator tokenize severe: adding annotator ssplit severe: adding annotator pos severe: reading pos tagger model edu/stanford/nlp/models/pos-tagger/english-left3words/english-left3words-distsim.tagger severe: ... severe: done [1,2 sec]. severe: adding annotator lemma severe: adding annotator ner severe: loading classifier edu/stanford/nlp/models/ner/english.all.3class.distsim.crf.ser.gz severe: ... severe: done [4,0 sec]. severe: loading classifier edu/stanford/nlp/models/ner/english.muc.7class.distsim.crf.ser.gz severe: ... warning: standardwrappervalve[dispatcher]: servlet.service() servlet dispatcher threw exception java.lang.outofmemoryerror: java heap space
as mentioned here http://nlp.stanford.edu/software/parser-faq.shtml [num. 6] tried set vm alternative -xmx4g this: right click on project -> properties -> configurations -> add. , created new configuration run.args.extra=-xmx4g
edit 1
so run jsp comman , have no thought means. got this:
1268 jps -denv.class.path=.;c:\program files (x86)\java\jre7\lib\ext\qtjava.zip -dapplication.home=c:\program files\java\jdk1.7.0_17 -xms8m 7496 -dnetbeans.importclass=org.netbeans.upgrade.autoupgrade -dnetbeans.accept_license_class=org.netbeans.license.acceptlicense -client -xss2m -xms32 m -xx:permsize=32m -dapple.laf.usescreenmenubar=true -dapple.awt.graphics.usequartz=true -dsun.java2d.noddraw=true -dsun.java2d.dpiaware=true -dsun.zi p.disablememorymapping=true -xmx1024m -xx:maxpermsize=384m -djdk.home=c:\program files\java\jdk1.7.0_17 -dnetbeans.home=c:\program files\netbeans 8.0. 1\platform -dnetbeans.user=c:\users\majernikm\appdata\roaming\netbeans\8.0.1 -dnetbeans.default_userdir_root=c:\users\majernikm\appdata\roaming\netbea ns -xx:+heapdumponoutofmemoryerror -xx:heapdumppath=c:\users\majernikm\appdata\roaming\netbeans\8.0.1\var\log\heapdump.hprof -dsun.awt.keepworkingseto nminimize=true -dnetbeans.dirs=c:\program files\netbeans 8.0.1\nb;c:\program files\netbeans 8.0.1\ergonomics;c:\program files\netbeans 8.0.1\ide;c:\pr ogram files\netbeans 8.0.1\extide;c:\program files\netbeans 8.0.1\java;c:\program files\netbeans 8.0.1\apisupport;c:\program files 6596 programme 8612 networkservercontrol -dderby.system.home=c:\users\majernikm\.netbeans-derby 6900 asmain -xx:maxpermsize=192m -djava.awt.headless=true -djdk.corba.allowoutputstreamsubclass=true -djavax.xml.accessexternalschema=all -djavax.mana gement.builder.initial=com.sun.enterprise.v3.admin.appservermbeanserverbuilder -xx:+unlockdiagnosticvmoptions -djava.endorsed.dirs=c:\program files\gl assfish-4.1\glassfish/modules/endorsed;c:\program files\glassfish-4.1\glassfish/lib/endorsed -djava.security.policy=c:\program files\glassfish-4.1\gla ssfish\domains\domain1/config/server.policy -djava.security.auth.login.config=c:\program files\glassfish-4.1\glassfish\domains\domain1/config/login.co nf -dcom.sun.enterprise.security.httpsoutboundkeyalias=s1as -xmx512m -djavax.net.ssl.keystore=c:\program files\glassfish-4.1\glassfish\domains\domain1 /config/keystore.jks -djavax.net.ssl.truststore=c:\program files\glassfish-4.1\glassfish\domains\domain1/config/cacerts.jks -djava.ext.dirs=c:\program files\java\jdk1.7.0_17/lib/ext;c:\program files\java\jdk1.7.0_17/jre/lib/ext;c:\program files\glassfish-4.1\glassfish\domains\domain1/l
edit 2 - answer
in my case solution alter glassfish tomcat , started working :). lot helped.
can help me?
thanks lot.
michal
you using stanford core nlp taking much heap size ner. restart netbean , give heap memory in multiple of 1024.i used code in -xmx4096m heap size , worked.
like -xmx4096m or -xmx5120m
java spring spring-mvc netbeans stanford-nlp
Comments
Post a Comment