[JBossCache] - Re: JBC 2 performance
by manik.surtaniï¼ jboss.com
"aditsu" wrote : Hm.. I'm not sure how it's related, but it sounds very good.
I don't bother protecting/synchronizing the maps in a node when accessed via the XXDirect() calls as I assume that any locking happens on a higher level (see javadocs on NodeSPI). So clearly this higher-level sync wasn't working and hence the concurrent modification exceptions. And true enough, a bug in the PessimisticLockInterceptor was only acquiring read locks for remove(Fqn, Key) calls rather than write locks.
"aditsu" wrote :
| I updated again from CVS; it seems to work now and doesn't do MapCopy anymore. The performance is still not really great, but it may not be JBC's fault. I'll keep profiling.
|
Performance not great, in relation to 1.4.1? Or in an absolute sense? What's your setup, how is your cluster configured, do you use cache loaders, eviction?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069020#4069020
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069020
18Â years, 8Â months
[Security & JAAS/JBoss] - org.jboss.deployment.DeploymentException: no protocol:
by ambika
Hi,
I am tesing the jboss 4.2.0.GA application platform. While doing specj2004 testing, i am getting following error.
12:33:45,953 ERROR [MainDeployer] Could not create deployment: file:/opt/jboss-eap-4.2/jboss-as/server/specj2004/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: no protocol: org/jboss/remoting/transport/Connector.xml; - nested throwable: (java.net.MalformedURLException: no protocol: org/jboss/remoting/transport/Connector.xml)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
In many of the posts in this forum, they asked to remove the xmbean-dd="org/jboss/remoting/transport/Connector.xml" from jboss-service.xml, but after removing it, we are getting following error.
2007-07-31 12:37:59,621 INFO [org.jboss.web.WebService] Using RMI server codebase: http://127.0.0.1:8083/
2007-07-31 12:37:59,963 WARN [org.jboss.system.ServiceController] Problem starting service jboss:service=Naming
java.lang.NullPointerException
at org.jnp.server.Main.getNamingInstance(Main.java:301)
at org.jnp.server.Main.initJnpInvoker(Main.java:354)
at org.jnp.server.Main.start(Main.java:316)
at org.jboss.naming.NamingService.startService(NamingService.java:284)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at org.jboss.system.ServiceController.start(ServiceController.java:435)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
====
Caused by: java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive0(Native Method)
at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136)
at java.net.DatagramSocket.receive(DatagramSocket.java:729)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1289)
What is the actual problem, i dont knw exact implementation of the specj2004 apps server. Please can any one help me regarding this?
Regards,
Ambika
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069019#4069019
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069019
18Â years, 8Â months
[JBoss Seam] - Dynamically sized pop-up window
by chrismalan
Any idea how to implement a pop-up window just big enough for an image? I don't know what size images are going to be uploaded.
This is how I've done the pop-up, and it works:
pages.xml
| <page view-id="/search.xhtml">
| <navigation from-action="#{searchSessionBean.setPhoto}">
| <render view-id="/hppu.xhtml"/>
| </navigation>
| </page>
|
and on the view:
| <h:column>
| <f:facet name="header">Show the Photo</f:facet>
| <s:link target="PopUp" onclick="window.open(null,'PopUp','width=270,height=290')"
| value="Show the Photo" action="#{searchSessionBean.setPhoto}" />
| </h:column>
|
Incidentally, not using pages.xml and supplying the URL of the pop-up page does not work. The page that pops up is the same as the page on which the link was clicked. The same goes for using navigation.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069017#4069017
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069017
18Â years, 8Â months