[ 
https://issues.apache.org/jira/browse/AMQ-5000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13885455#comment-13885455
 ] 

Guilhem RAMBAL commented on AMQ-5000:
-------------------------------------

I Think is link not with -Dorg.apache.activemq.UseDedicatedTaskRunner=false but 
 ACTIVEMQ_OPTS with parameter

I put in activemq.conf : 

Not working:
ACTIVEMQ_OPTS="-Xms4096M -Xmx4096M 
-Dorg.apache.activemq.UseDedicatedTaskRunner=false"

cat /proc/31354/cmdline 
/usr/java/default/bin/java-Xms4096M-Xmx4096M-Dorg.apache.activemq.UseDedicatedTaskRunner=false-Dcom.sun.management.jmxremote.port=11099-Dcom.sun.management.jmxremote.password.file=/hawai/composants/activemq/conf/jmx.password-Dcom.sun.management.jmxremote.access.file=/hawai/composants/activemq/conf/jmx.access-Dcom.sun.management.jmxremote.ssl=false-Dcom.sun.management.jmxremote-Djava.awt.headless=true-Djava.io.tmpdir=/hawai/composants/activemq/tmp-Dactivemq.classpath=/hawai/composants/activemq/conf;-Dactivemq.home=/hawai/composants/activemq-Dactivemq.base=/hawai/composants/activemq-Dactivemq.conf=/hawai/composants/activemq/conf-Dactivemq.data=/hawai/composants/activemq/data-jar/hawai/composants/activemq/bin/activemq.jarstart

Not Working (loose of xms xmx):
ACTIVEMQ_OPTS_MEMORY="-Xms4096M -Xmx4096M"
#ACTIVEMQ_OPTS="-Xms4096M -Xmx4096M 
-Dorg.apache.activemq.UseDedicatedTaskRunner=false" 
ACTIVEMQ_OPTS="-Dorg.apache.activemq.UseDedicatedTaskRunner=false"
#ACTIVEMQ_OPTS="-Xms4096M -Xmx4096M"

cat /proc/707/cmdline
/usr/java/default/bin/java-Dorg.apache.activemq.UseDedicatedTaskRunner=false-Dcom.sun.management.jmxremote.port=11099-Dcom.sun.management.jmxremote.password.file=/hawai/composants/activemq/conf/jmx.password-Dcom.sun.management.jmxremote.access.file=/hawai/composants/activemq/conf/jmx.access-Dcom.sun.management.jmxremote.ssl=false-Dcom.sun.management.jmxremote-Djava.awt.headless=true-Djava.io.tmpdir=/hawai/composants/activemq/tmp-Dactivemq.classpath=/hawai/composants/activemq/conf;-Dactivemq.home=/hawai/composants/activemq-Dactivemq.base=/hawai/composants/activemq-Dactivemq.conf=/hawai/composants/activemq/conf-Dactivemq.data=/hawai/composants/activemq/data-jar/hawai/composants/activemq/bin/activemq.jarstart

Not working:
#ACTIVEMQ_OPTS_MEMORY="-Xms4096M -Xmx4096M"
#ACTIVEMQ_OPTS="-Xms4096M -Xmx4096M 
-Dorg.apache.activemq.UseDedicatedTaskRunner=false" 
#ACTIVEMQ_OPTS="-Dorg.apache.activemq.UseDedicatedTaskRunner=false"
ACTIVEMQ_OPTS="-Xms4096M -Xmx4096M
cat /proc/1092/cmdline 
/usr/java/default/bin/java-Xms4096M-Xmx4096M-Dcom.sun.management.jmxremote.port=11099-Dcom.sun.management.jmxremote.password.file=/hawai/composants/activemq/conf/jmx.password-Dcom.sun.management.jmxremote.access.file=/hawai/composants/activemq/conf/jmx.access-Dcom.sun.management.jmxremote.ssl=false-Dcom.sun.management.jmxremote-Djava.awt.headless=true-Djava.io.tmpdir=/hawai/composants/activemq/tmp-Dactivemq.classpath=/hawai/composants/activemq/conf;-Dactivemq.home=/hawai/composants/activemq-Dactivemq.base=/hawai/composants/activemq-Dactivemq.conf=/hawai/composants/activemq/conf-Dactivemq.data=/hawai/composants/activemq/data-jar/hawai/composants/activemq/bin/activemq.jarstart
Working:

# Set jvm memory configuration
ACTIVEMQ_OPTS_MEMORY="-Xms4096M -Xmx4096M"
#ACTIVEMQ_OPTS="-Xms4096M -Xmx4096M 
-Dorg.apache.activemq.UseDedicatedTaskRunner=false" 
#ACTIVEMQ_OPTS="-Xms4096M -Xmx4096M"


cat /proc/32617/cmdline 
/usr/java/default/bin/java-Xms4096M-Xmx4096M-Djava.util.logging.config.file=logging.properties-Dhawtio.realm=activemq-Dhawtio.role=admins-Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal-Djava.security.auth.login.config=/hawai/composants/activemq/conf/login.config-Dcom.sun.management.jmxremote.port=11099-Dcom.sun.management.jmxremote.password.file=/hawai/composants/activemq/conf/jmx.password-Dcom.sun.management.jmxremote.access.file=/hawai/composants/activemq/conf/jmx.access-Dcom.sun.management.jmxremote.ssl=false-Dcom.sun.management.jmxremote-Djava.awt.headless=true-Djava.io.tmpdir=/hawai/composants/activemq/tmp-Dactivemq.classpath=/hawai/composants/activemq/conf;-Dactivemq.home=/hawai/composants/activemq-Dactivemq.base=/hawai/composants/activemq-Dactivemq.conf=/hawai/composants/activemq/conf-Dactivemq.data=/hawai/composants/activemq/data-jar/hawai/composants/activemq/bin/activemq.jarstart

!!! Working !!!:
#ACTIVEMQ_OPTS_MEMORY="-Xms4096M -Xmx4096M"
#ACTIVEMQ_OPTS="-Xms4096M -Xmx4096M 
-Dorg.apache.activemq.UseDedicatedTaskRunner=false" 
#ACTIVEMQ_OPTS="-Dorg.apache.activemq.UseDedicatedTaskRunner=false"
ACTIVEMQ_OPTS="-Xms4096M -Xmx4096M 
-Dorg.apache.activemq.UseDedicatedTaskRunner=false 
-Djava.util.logging.config.file=logging.properties -Dhawtio.realm=activemq 
-Dhawtio.role=admins 
-Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal 
-Djava.security.auth.login.config=$ACTIVEMQ_CONF/login.config"

cat /proc/1419/cmdline 
/usr/java/default/bin/java-Xms4096M-Xmx4096M-Dorg.apache.activemq.UseDedicatedTaskRunner=false-Djava.util.logging.config.file=logging.properties-Dhawtio.realm=activemq-Dhawtio.role=admins-Dhawtio.rolePrincipalClasses=org.apache.activemq.jaas.GroupPrincipal-Djava.security.auth.login.config=/hawai/composants/activemq/conf/login.config-Dcom.sun.management.jmxremote.port=11099-Dcom.sun.management.jmxremote.password.file=/hawai/composants/activemq/conf/jmx.password-Dcom.sun.management.jmxremote.access.file=/hawai/composants/activemq/conf/jmx.access-Dcom.sun.management.jmxremote.ssl=false-Dcom.sun.management.jmxremote-Djava.awt.headless=true-Djava.io.tmpdir=/hawai/composants/activemq/tmp-Dactivemq.classpath=/hawai/composants/activemq/conf;-Dactivemq.home=/hawai/composants/activemq-Dactivemq.base=/hawai/composants/activemq-Dactivemq.conf=/hawai/composants/activemq/conf-Dactivemq.data=/hawai/composants/activemq/data-jar/hawai/composants/activemq/bin/activemq.jarstart

Sincerely and thanx u.

> New Web Admin-  jolokia error: Cannot connect to Jolokia to access this Java 
> process with  -- 
> ACTIVEMQ_OPTS="-Dorg.apache.activemq.UseDedicatedTaskRunner=false" 
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-5000
>                 URL: https://issues.apache.org/jira/browse/AMQ-5000
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.9.0
>            Reporter: Guilhem RAMBAL
>            Assignee: Dejan Bosanac
>
> java.lang.SecurityException: Impossible de trouver une configuration de 
> connexion
>       at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:93)
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>       at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>       at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>       at java.lang.Class.newInstance0(Class.java:357)
>       at java.lang.Class.newInstance(Class.java:310)
>       at javax.security.auth.login.Configuration$3.run(Configuration.java:247)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at 
> javax.security.auth.login.Configuration.getConfiguration(Configuration.java:242)
>       at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
>       at javax.security.auth.login.LoginContext.<init>(LoginContext.java:367)
>       at javax.security.auth.login.LoginContext.<init>(LoginContext.java:444)
>       at io.hawt.system.Authenticator.doAuthenticate(Authenticator.java:99)
>       at io.hawt.system.Authenticator.authenticate(Authenticator.java:76)
>       at 
> io.hawt.web.AuthenticationFilter.doFilter(AuthenticationFilter.java:84)
>       at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1291)
>       at io.hawt.web.CORSFilter.doFilter(CORSFilter.java:42)
>       at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1291)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:443)
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
>       at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:532)
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978)
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
>       at 
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
>       at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:532)
>       at 
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
>       at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>       at org.eclipse.jetty.server.Server.handle(Server.java:367)
>       at 
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486)
>       at 
> org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)
>       at 
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)
>       at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
>       at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
>       at 
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
>       at 
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
>       at 
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
>       at java.lang.Thread.run(Thread.java:662)
> Caused by: java.io.IOException: Impossible de trouver une configuration de 
> connexion
>       at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:250)
>       at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:91)
>       ... 45 more
> Caused by:
> java.io.IOException: Impossible de trouver une configuration de connexion
>       at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:250)
>       at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:91)
>       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>       at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
>       at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>       at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>       at java.lang.Class.newInstance0(Class.java:357)
>       at java.lang.Class.newInstance(Class.java:310)
>       at javax.security.auth.login.Configuration$3.run(Configuration.java:247)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at 
> javax.security.auth.login.Configuration.getConfiguration(Configuration.java:242)
>       at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
>       at javax.security.auth.login.LoginContext.<init>(LoginContext.java:367)
>       at javax.security.auth.login.LoginContext.<init>(LoginContext.java:444)
>       at io.hawt.system.Authenticator.doAuthenticate(Authenticator.java:99)
>       at io.hawt.system.Authenticator.authenticate(Authenticator.java:76)
>       at 
> io.hawt.web.AuthenticationFilter.doFilter(AuthenticationFilter.java:84)
>       at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1291)
>       at io.hawt.web.CORSFilter.doFilter(CORSFilter.java:42)
>       at 
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1291)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:443)
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
>       at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:532)
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1044)
>       at 
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:372)
>       at 
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189)
>       at 
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:978)
>       at 
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
>       at 
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
>       at 
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:532)
>       at 
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
>       at 
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>       at org.eclipse.jetty.server.Server.handle(Server.java:367)
>       at 
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:486)
>       at 
> org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)
>       at 
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)
>       at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
>       at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
>       at 
> org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
>       at 
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
>       at 
> org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
>       at 
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
>       at java.lang.Thread.run(Thread.java:662)
> Powered by Jetty://



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to