java - There's any way to run two JVM in the same server? -


i'm having issues jvm; have web page , application no gui(udp server), , both uses same database, application(udp server) it's working ok if web application out of memory whole jvm stop; thinking put udp server in different jvm.

i'm getting following messages

may 21, 2013 5:24:05 pm org.apache.catalina.loader.webappclassloader checkthreadlocalmapforleaks
severe: web application [/track] created threadlocal key of type [org.opengts.util.threadlocalmap$1] (value [org.opengts.util.threadlocalmap$1@277085a4]) , value of type [java.util.hashtable] (value [{jdbc:mysql://localhost:3306/gts?characterencoding=utf-8&useunicode=true&charactersetresults=utf8=org.opengts.dbtools.dbconnection@22236dae}]) failed remove when web application stopped. threads going renewed on time try , avoid probable memory leak.

and when restart web page

may 21, 2013 5:24:20 pm org.apache.catalina.startup.catalina start info: server startup in 2695 ms exception in thread "http-bio-8080-acceptor-0" java.lang.outofmemoryerror: unable create new native thread @ java.lang.thread.start0(native method) @ java.lang.thread.start(thread.java:657) @ java.util.concurrent.threadpoolexecutor.addworker(threadpoolexecutor.java:943) @ java.util.concurrent.threadpoolexecutor.execute(threadpoolexecutor.java:1336) @ org.apache.tomcat.util.threads.threadpoolexecutor.execute(threadpoolexecutor.java:176) @ org.apache.tomcat.util.threads.threadpoolexecutor.execute(threadpoolexecutor.java:156) @ org.apache.tomcat.util.net.jioendpoint.processsocket(jioendpoint.java:510) @ org.apache.tomcat.util.net.jioendpoint$acceptor.run(jioendpoint.java:229) @ java.lang.thread.run(thread.java:679) exception in thread "http-bio-8080-exec-8" java.lang.outofmemoryerror: unable create new native thread @ java.lang.thread.start0(native method) @ java.lang.thread.start(thread.java:657) @ java.util.concurrent.threadpoolexecutor.addworker(threadpoolexecutor.java:943) @ java.util.concurrent.threadpoolexecutor.processworkerexit(threadpoolexecutor.java:992) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1128) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) @ java.lang.thread.run(thread.java:679) 

new info

i tried ulimit command getting following results.

ulimit unlimited ulimit -hn 163840 ulimit -n 163840 ulimit -u 1024 

now i'm wondering what's meaning of numbers? amount of process or memory in mbytes?

the "java.lang.outofmemoryerror: unable create new native thread" error isn't out of memory error @ -- jvm unable create new thread due os limitation.

what os using? on linux, can increase doing:

ulimit -u <new limit> 

Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -