[JBoss AS 7 Development] - AS7 getting slower
by Rene Gritsch
Rene Gritsch [https://community.jboss.org/people/renegritsch] created the discussion
"AS7 getting slower"
To view the discussion, visit: https://community.jboss.org/message/783354#783354
--------------------------------------------------------------
Hello,
we have a real strange behavoir, which can´t be profiled with JProfiler cause it looks like a blocking inside JBoss before passing by any requests to our app.
We are using a .WAR with Seam 2, JSF 1.2 (JSF 2.0 excluded in AS7), Richfaces 3.3.3 and Hibernate and C3P0, so a classic combination.
In the past we were using Tomcat with embedded JBoss as our Application server without any problems. Now we tried to switch to AS7 and we have the
strange the behavoir that with about 30 users and 2sec. think time our webapp is getting really slow and we have minutes of response time but also
after stopping our stress test jboss as7 is still really slow, also returning back static resources like images is quite slow but CPU / memory is fine.
Same .war on Glassfish or Tomcat with embedded Jboss is running without any problems.
Are the any known issues cause of JSF 1.2 downgrade? or any other suggestions?
Thanks alot for any help and if you need further informations just ask.
Thnx René
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/783354#783354]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 4 months
[JMX Development] - Making an apps log available to JMX-Console as notification
by Brajesh Singh
Brajesh Singh [https://community.jboss.org/people/brajeshs] created the discussion
"Making an apps log available to JMX-Console as notification"
To view the discussion, visit: https://community.jboss.org/message/783474#783474
--------------------------------------------------------------
Hi,
I'm new to this technology and community, I've tried to read about this on the web, but couldn't find something that would work for me.
I've an application which is using log4j logging which has a file appender. On deploying this into JBOSS, I wanted to be able to have JBOSS pick the logging information and be able to display them as Alerts or something.
For JBOSS's own log4j setting, I uncommented the JMXNotification appender etc and also modified the service.xml to allow for alerttables but all I get there is JBOSS specific alerts. Nothing related to the application, it continues to log stuff to it's file though.
Another thing that I wanted to be able to do was to be able to view the logs as notification in say jconsole but when I connect my jboss instance, I am able to access the MBEANS and the logging within it but the notification tab is disabled, it only allows me some operations like getting log level etc.
My app EAR doesn't contain with it the app log4j and my JBOSS version is 5.1, JDK is 1.5
Thanks in advance for your time and help.
Regards.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/783474#783474]
Start a new discussion in JMX Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 4 months
Re: [jboss-dev-forums] [JBoss AS 7 Development] - Data Source Configuration in AS 7
by jarkko rantavuori
jarkko rantavuori [https://community.jboss.org/people/jrantav] commented on the document
"Data Source Configuration in AS 7"
To view all comments on this document, visit: https://community.jboss.org/docs/DOC-16657#comment-11262
--------------------------------------------------
Note that the steps in the article only allow creation of non-xa datasources with mysql.
If you need xa-datasources, you need to have something like this in your module.xml (note the dependency to transaction api):
<module xmlns="urn:jboss:module:1.0" name="com.mysql">
<resources>
<resource-root path="mysql-connector-java-5.1.22-bin.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api" />
</dependencies>
</module>
As explained in this irc log: http://echelog.com/logs/browse/jboss-as7/1327618800 http://echelog.com/logs/browse/jboss-as7/1327618800
Note also that at the time of this writing (14.12.2012) current mysql connector (5.1.22) already contains the file mentioned for type 4 drivers, java.sql.Driver.
Here's a working configuration that defines a non-xa and an xa datasource for mysql:
<datasource jndi-name="java:jboss/datasources/MySqlDS" pool-name="MySqlDS" enabled="true">
<connection-url>jdbc:mysql://localhost:3306/test</connection-url>
<driver>com.mysql</driver>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
<pool>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
<prefill>true</prefill>
</pool>
<security>
<user-name>root</user-name>
<password>mysqlpass</password>
</security>
<statement>
<prepared-statement-cache-size>32</prepared-statement-cache-size>
<share-prepared-statements>true</share-prepared-statements>
</statement>
</datasource>
<xa-datasource jndi-name="java:jboss/datasources/MySqlXADS" pool-name="MySqlXADS" enabled="true" use-ccm="false">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
<xa-datasource-property name="ServerName">
localhost
</xa-datasource-property>
<xa-datasource-property name="DatabaseName">
test
</xa-datasource-property>
<xa-datasource-property name="User">
root
</xa-datasource-property>
<xa-datasource-property name="Password">
mysqlpass
</xa-datasource-property>
<driver>com.mysql</driver>
<xa-pool>
<is-same-rm-override>false</is-same-rm-override>
<interleaving>false</interleaving>
<pad-xid>false</pad-xid>
<wrap-xa-resource>false</wrap-xa-resource>
</xa-pool>
<security>
<user-name>root</user-name>
<password>mysqlpass</password>
</security>
<validation>
<validate-on-match>false</validate-on-match>
<background-validation>false</background-validation>
</validation>
<statement>
<share-prepared-statements>false</share-prepared-statements>
</statement>
</xa-datasource>
<drivers>
<driver name="com.mysql" module="com.mysql">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
</drivers>
--------------------------------------------------
11 years, 4 months
[JBoss Web Services Development] - SOAP WebService ClassCastException: org.jboss.ws.core.soap.TextImpl cannot be cast to org.w3c.dom.Comment
by Mith Randir
Mith Randir [https://community.jboss.org/people/mithrand1r] created the discussion
"SOAP WebService ClassCastException: org.jboss.ws.core.soap.TextImpl cannot be cast to org.w3c.dom.Comment"
To view the discussion, visit: https://community.jboss.org/message/782585#782585
--------------------------------------------------------------
Hello, I have this problem after migrating to JBOSS 4.2.3 from Apache Tomcat, after submitting SOAP request i can't parse it properly and here it is what i have got:
[code]java.lang.ClassCastException: org.jboss.ws.core.soap.TextImpl cannot be cast to org.w3c.dom.Comment
at org.apache.xml.serializer.TreeWalker.startNode(TreeWalker.java:287) ~[na:2.7.0]
at org.apache.xml.serializer.TreeWalker.traverse(TreeWalker.java:143) ~[na:2.7.0]
at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:389) ~[na:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.springframework.ws.server.endpoint.AbstractLoggingInterceptor.logMessageSource(AbstractLoggingInterceptor.java:149) ~[spring-ws-core-2.1.1.RELEASE.jar:na]
at org.springframework.ws.server.endpoint.AbstractLoggingInterceptor.handleRequest(AbstractLoggingInterceptor.java:89) ~[spring-ws-core-2.1.1.RELEASE.jar:na]
at org.springframework.ws.server.endpoint.interceptor.DelegatingSmartEndpointInterceptor.handleRequest(DelegatingSmartEndpointInterceptor.java:78) ~[spring-ws-core-2.1.1.RELEASE.jar:na]
at org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:224) [spring-ws-core-2.1.1.RELEASE.jar:na]
at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:173) [spring-ws-core-2.1.1.RELEASE.jar:na]
at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:88) [spring-ws-core-2.1.1.RELEASE.jar:na]
at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:59) [spring-ws-core-2.1.1.RELEASE.jar:na]
at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:221) [spring-ws-core-2.1.1.RELEASE.jar:na]
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) [spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789) [spring-webmvc-3.1.2.RELEASE.jar:3.1.2.RELEASE]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) [servlet-api.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) [servlet-api.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [tmp6642786118731031121jbossweb.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tmp6642786118731031121jbossweb.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) [tmp8382621026727147370jbossweb-service.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [tmp6642786118731031121jbossweb.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [tmp6642786118731031121jbossweb.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) [tmp6642786118731031121jbossweb.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) [tmp6642786118731031121jbossweb.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182) [tmp8382621026727147370jbossweb-service.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) [tmp8382621026727147370jbossweb-service.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [tmp6642786118731031121jbossweb.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [tmp6642786118731031121jbossweb.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) [tmp8382621026727147370jbossweb-service.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [tmp6642786118731031121jbossweb.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262) [tmp6642786118731031121jbossweb.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) [tmp6642786118731031121jbossweb.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) [tmp6642786118731031121jbossweb.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446) [tmp6642786118731031121jbossweb.jar:4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)]
at java.lang.Thread.run(Thread.java:722) [na:1.7.0_09][/code]
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/782585#782585]
Start a new discussion in JBoss Web Services Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 4 months