[Design of POJO Server] - Re: Caching of classes in BaseClassLoaderDomain
by alesj
I moved the failIfBlackListed flag chek into the checkClassBlackList method,
as I think it should be its responsibility to determine what to do with it.
(e.g. some other domain impl might handle this diff ... although not very likely :-))
| + void checkClassBlackList(BaseClassLoader classLoader, String name, String path, boolean allExports, boolean failIfBlackListed) throws ClassNotFoundException
| {
| if (allExports)
| {
| - if (globalClassBlackList.containsKey(path))
| + if (failIfBlackListed && globalClassBlackList.containsKey(path))
| {
| if (log.isTraceEnabled())
| log.trace("Found " + name + " in global blacklist");
| @@ -1491,7 +1494,7 @@
| * result in ClassNotFoundException; <code>false</code>
| * if a <code>null</code> return value is acceptable
| * @return the class when found in the cache
| - * @throws ClassNotFoundException when the class is blacklisted and
| + * @throws ClassNotFoundException when the class is blacklisted and
| * <code>failIfBlackListed</code> is <code>true</code>
| */
| protected Class<?> checkClassCacheAndBlackList(BaseClassLoader classLoader, String name, String path, boolean allExports, boolean failIfBlackListed) throws ClassNotFoundException
| @@ -1502,11 +1505,9 @@
| Class<?> result = checkClassCache(classLoader, name, path, allExports);
| if (result != null)
| return result;
| -
| - if (failIfBlackListed)
| - {
| - checkClassBlackList(classLoader, name, path, allExports);
| - }
| +
| + checkClassBlackList(classLoader, name, path, allExports, failIfBlackListed);
| +
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228498#4228498
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228498
15 years, 7 months
Jboss memory leak
by manjula h
Hi
I need some help on how to solve the memory leak issue with JBoss. I tested
my application for memory leak using JProfiler. And my application is
deployed in JBoss. In the memory view i found that the number of instances
of String objects, HashTree, int and char[] primitve datatypes were
increasing in time. I dont understand where the memory leak is and how to
solve this issue.
Please reply if anyone has any idea as to what is happening.
Thanks in advance
15 years, 7 months
[Design of Messaging on JBoss (Messaging/JBoss)] - AIO Buffer & Executors Optimization Update
by clebert.suconic@jboss.com
I have the changes done at my workspace already.
I could get a successful run if using r6654 (before the pool refactoring), and a few failures if using 6653 (same ones as I have seen on hudson).
After these changes, buffer creation is going to be pretty fast and buffer reuse will be fast.
I will also be using executors for thread pools. I will be using a single-thread executor for writing (as it is done at the moment, but the executor will be shared among all the files), and another one to reuse threads on pollers.
I'm not using the thread-pool from MessagingServer because:
I - The poller thread will be in use as long as the file is opened
II - It would be really dangerous sharing the executor with MessagingServer. I really need a thread available for polling data on AIO.
I will commit it tomorrow morning. (I just didn't want to commit now with the testsuite broken as it is now).
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228478#4228478
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228478
15 years, 7 months
[Design of JBoss Profiler] - Re: JBoss Profiler Installation in Windows - questions
by krashsun
Hi,
I am using jboss-profiler-2.0beta3.sp1 on jboss AS 4.2.2. After doing all the necessary setup I ran the snapshot command
java -jar jboss-profiler-client.jar snapshot
and got socket connection error as below. I have even change the port on jboss-profiler.properties to my web server port and still the port 5400 error came up. Where can I change this port configuration or is there anything else I am missing.
Thank you.
| C:\apps\jboss-profiler-2.0.Beta3.SP1>java -jar jboss-profiler-client.jar snapshot
| 2009-05-05 10:21:04,747 ERROR [org.jboss.profiler.client.cmd.Client] Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket:/
| /localhost:5400/]
| org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://localhost:5400/]
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:530)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
| at org.jboss.remoting.Client.invoke(Client.java:1550)
| at org.jboss.remoting.Client.invoke(Client.java:530)
| at org.jboss.remoting.Client.invoke(Client.java:518)
| at org.jboss.profiler.client.cmd.Client.main(Client.java:260)
| Caused by: java.net.ConnectException: Connection refused: connect
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
| at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
| at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
| at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
| at java.net.Socket.connect(Socket.java:519)
| at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:187)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:801)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:526)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228471#4228471
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228471
15 years, 7 months