[JBoss JIRA] Created: (JBAS-8389) Issue in using ThreadLocal
by Arunsakthi Kalyanasundharam (JIRA)
Issue in using ThreadLocal
--------------------------
Key: JBAS-8389
URL: https://jira.jboss.org/browse/JBAS-8389
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Java EE APIs
Affects Versions: JBossAS-4.2.2.GA
Environment: Application Server - Garbage collection
Reporter: Arunsakthi Kalyanasundharam
Assignee: Shelly McGowan
Fix For: JBossAS-4.2.3.GA
I'm using Threadlocal in a web component. By definition, threadlocal variables should be cleared by end of execution of the thread. In case Application server, since its using a thread pool, the threadlocal variables are not cleared / garbage collected.
This is leading to memory leakage (out of memory errors) and inconsistent behavior of the application since the variables are not getting cleared off.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months
[JBoss JIRA] Created: (JBAS-8927) jvisualvm on as7 with profile enabled results in ClassCircularityErrors - way to preconfigure AS7 allow it ?
by Max Rydahl Andersen (JIRA)
jvisualvm on as7 with profile enabled results in ClassCircularityErrors - way to preconfigure AS7 allow it ?
------------------------------------------------------------------------------------------------------------
Key: JBAS-8927
URL: https://issues.jboss.org/browse/JBAS-8927
Project: JBoss Application Server
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Reporter: Max Rydahl Andersen
1) start as7
2) start jvisualvm and connect to the as 7 process.
3) go to Profiler tab
4) click CPU
wait a few seconds and you as7 console output gets filled with ClassCircularityErrors:
02:35:22,145 ERROR [stderr] (RMI TCP Connection(idle)) Exception in thread "RMI TCP Connection(idle)" java.lang.ClassCircularityError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr
02:35:22,145 ERROR [stderr] (RMI TCP Connection(idle)) at org.jboss.logmanager.Logger.isLoggable(Logger.java:153)
02:35:22,145 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.runtime.Log$LoggerLog.isLoggable(Log.java:206)
02:35:22,146 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:731)
02:35:22,146 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:652)
02:35:22,146 ERROR [stderr] (RMI TCP Connection(idle)) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
02:35:22,146 ERROR [stderr] (RMI TCP Connection(idle)) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)
02:35:22,147 ERROR [stderr] (RMI TCP Connection(idle)) at java.lang.Thread.run(Thread.java:680)
02:35:23,142 ERROR [stderr] (RMI TCP Connection(idle)) Exception in thread "RMI TCP Connection(idle)" java.lang.ClassCircularityError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr
02:35:23,142 ERROR [stderr] (RMI TCP Connection(idle)) at org.jboss.logmanager.Logger.isLoggable(Logger.java:153)
02:35:23,142 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.runtime.Log$LoggerLog.isLoggable(Log.java:206)
02:35:23,142 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:731)
02:35:23,143 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:652)
02:35:23,143 ERROR [stderr] (RMI TCP Connection(idle)) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
02:35:23,143 ERROR [stderr] (RMI TCP Connection(idle)) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)
02:35:23,143 ERROR [stderr] (RMI TCP Connection(idle)) at java.lang.Thread.run(Thread.java:680)
02:35:23,159 ERROR [stderr] (RMI TCP Connection(idle)) Exception in thread "RMI TCP Connection(idle)" java.lang.ClassCircularityError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr
02:35:23,159 ERROR [stderr] (RMI TCP Connection(idle)) at org.jboss.logmanager.Logger.isLoggable(Logger.java:153)
02:35:23,159 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.runtime.Log$LoggerLog.isLoggable(Log.java:206)
02:35:23,160 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:731)
02:35:23,160 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:652)
02:35:23,160 ERROR [stderr] (RMI TCP Connection(idle)) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
02:35:23,160 ERROR [stderr] (RMI TCP Connection(idle)) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)
02:35:23,160 ERROR [stderr] (RMI TCP Connection(idle)) at java.lang.Thread.run(Thread.java:680)
02:35:24,144 ERROR [stderr] (RMI TCP Connection(idle)) Exception in thread "RMI TCP Connection(idle)" java.lang.ClassCircularityError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr
02:35:24,145 ERROR [stderr] (RMI TCP Connection(idle)) at org.jboss.logmanager.Logger.isLoggable(Logger.java:153)
02:35:24,145 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.runtime.Log$LoggerLog.isLoggable(Log.java:206)
02:35:24,146 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:731)
02:35:24,146 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:652)
02:35:24,146 ERROR [stderr] (RMI TCP Connection(idle)) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
02:35:24,146 ERROR [stderr] (RMI TCP Connection(idle)) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)
02:35:24,146 ERROR [stderr] (RMI TCP Connection(idle)) at java.lang.Thread.run(Thread.java:680)
02:35:24,151 ERROR [stderr] (RMI TCP Connection(idle)) Exception in thread "RMI TCP Connection(idle)" java.lang.ClassCircularityError: org/netbeans/lib/profiler/server/ProfilerRuntimeCPUFullInstr
02:35:24,157 ERROR [stderr] (RMI TCP Connection(idle)) at org.jboss.logmanager.Logger.isLoggable(Logger.java:153)
02:35:24,157 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.runtime.Log$LoggerLog.isLoggable(Log.java:206)
02:35:24,157 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:731)
02:35:24,157 ERROR [stderr] (RMI TCP Connection(idle)) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:652)
02:35:24,158 ERROR [stderr] (RMI TCP Connection(idle)) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
02:35:24,158 ERROR [stderr] (RMI TCP Connection(idle)) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:911)
02:35:24,158 ERROR [stderr] (RMI TCP Connection(idle)) at java.lang.Thread.run(Thread.java:680)
Maybe add -Djboss.modules.system.pkgs=org.netbeans.lib.profiler.server as a default ?
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months
[JBoss JIRA] Deleted: (JBAS-4393) XAER_RMERR followed by Data Access Error
by Jason Greene (JIRA)
[ https://issues.jboss.org/browse/JBAS-4393?page=com.atlassian.jira.plugin.... ]
Jason Greene deleted JBAS-4393:
-------------------------------
> XAER_RMERR followed by Data Access Error
> ----------------------------------------
>
> Key: JBAS-4393
> URL: https://issues.jboss.org/browse/JBAS-4393
> Project: JBoss Application Server
> Issue Type: Support Patch
> Security Level: Public(Everyone can see)
> Reporter: spectra28
>
> Keep on receiving XAER_RMERR that makes our jboss crash. Please let us know how to solve this. what triggers this problem and how to prevent this. Is this issue related to JBAS 3336?
> here's a part of our server.log file
> 2007-05-03 16:19:03,826 WARN [org.jboss.tm.TransactionImpl] XAException: tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=EMEAU1801/755, BranchQual=, localId=755] errorCode=XAER_RMERR
> javax.transaction.xa.XAException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]xa_start (40000) returns -8
> Thanks
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years, 3 months