[Performance Tuning] - Re: JBoss 4.05 don't release free memory - Out of Memory err
by bakry
I have monitored the memory using system tools, jboss web console and jprofiler... all gave the same result..
following is snapshot of jboss web-console main screen showing the resouce utilization
JVM Environment
Free Memory: 981 MB
Max Memory: 1333 MB
Total Memory: 1058 MB
#Threads: 78
JVM Version: 1.5.0_07-b03 (Sun Microsystems Inc.)
JVM Name: Java HotSpot(TM) Server VM
In the run.cfg I configured the startup memory to 128m and the max to 1.5g... jboss start with 128m and kept eating more memory (although that there were always free memory avaialble --- monitoring the free memory figure of the web-console)..... till it reached this state of consuming 1058mb... my understanding Jboss/JVM should not ask the OS for more memory if there is free memory available (cleaned by garbage collector)... with time the total memory reaches the max memory and the jboss starts throwing OOME.
so the question again, what can I do to make the JVM/JBoss uses the free memory instead of consuming new memory from the OS.
Regards,
Bakry
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145321#4145321
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145321
18 years, 3 months
[Security & JAAS/JBoss] - ExtendedFormAuthenticator causes IllegalStateException in Se
by cardoso
Hello,
I am using the ExtendedFormAuthenticator which works fine if both username and password are correct.
But after entering an invalid password and submitting the form, the following IllegalStateException is thrown, and therefore the error-page is not shown.
2008-04-19 14:23:07,780 TRACE [org.jboss.web.tomcat.security.JBossWebRealm] User: testuser is NOT authenticated
2008-04-19 14:23:07,780 TRACE [org.jboss.web.tomcat.security.JBossWebRealm] End authenticate, principal=null
2008-04-19 14:23:07,780 TRACE [org.jboss.web.tomcat.security.ExtendedFormAuthenticator] forwardToErrorPage
2008-04-19 14:23:07,780 TRACE [org.jboss.web.tomcat.security.ExtendedFormAuthenticator] SessionID: 125F46B5D04395A49BFF11FD83BAF
2008-04-19 14:23:07,780 TRACE [org.jboss.web.tomcat.security.ExtendedFormAuthenticator] Setting j_username = testuser
2008-04-19 14:23:07,780 TRACE [org.jboss.web.tomcat.security.ExtendedFormAuthenticator] Setting j_password = --hidden--
2008-04-19 14:23:07,780 TRACE [org.jboss.security.SecurityRolesAssociation] Setting threadlocal:null
2008-04-19 14:23:07,780 TRACE [org.jboss.security.SecurityRolesAssociation] Setting threadlocal:null
2008-04-19 14:23:07,781 ERROR [org.apache.catalina.connector.CoyoteAdapter] An exception or error occurred in the container during the requ
est processing
java.lang.IllegalStateException: Security Context is null
at org.jboss.web.tomcat.security.SecurityAssociationActions$GetAuthExceptionAction.run(SecurityAssociationActions.java:168)
at java.security.AccessController.doPrivileged(Native Method)
at org.jboss.web.tomcat.security.SecurityAssociationActions.getAuthException(SecurityAssociationActions.java:290)
at org.jboss.web.tomcat.security.ExtendedFormAuthenticator.populateSession(ExtendedFormAuthenticator.java:180)
at org.jboss.web.tomcat.security.ExtendedFormAuthenticator.forwardToErrorPage(ExtendedFormAuthenticator.java:123)
at org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:260)
at org.jboss.web.tomcat.security.ExtendedFormAuthenticator.authenticate(ExtendedFormAuthenticator.java:86)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:417)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:90)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:96)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:309)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
Before this happens the javax.security.auth.login.FailedLoginException was thrown by the LoginModule,
Does anyone have an idea what is going wrong?
Thomas
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145312#4145312
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145312
18 years, 3 months
[Messaging, JMS & JBossMQ] - Re: configure queue
by vikrant1
That file is at the following:
C:\jboss-5.0.0.Beta4\server\all\deploy\messaging\destinations-service.xml
C:\jboss-5.0.0.Beta4\server\default\deploy\messaging\destinations-service.xml
which one do I edit? Also there is no testQueue. Both xml files contain the following:
<?xml version="1.0" encoding="UTF-8" ?>
| - <!-- Messaging Destinations deployment descriptor.
|
| $Id: destinations-service.xml 64130 2007-07-18 23:21:27Z clebert.suconic(a)jboss.com $
|
| -->
| - <server>
| - <!-- The Default Dead Letter Queue. This destination is a dependency of an EJB MDB container.
|
| -->
| - <mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging.destination:service=Queue,name=DLQ" xmbean-dd="xmdesc/Queue-xmbean.xml">
| <annotation>@org.jboss.system.deployers.managed.ManagementObjectClass(code=org.jboss.jms.server.destination.QueueServiceMO)</annotation>
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| </mbean>
| - <!-- The Default Expiry Queue.
|
| -->
| - <mbean code="org.jboss.jms.server.destination.QueueService" name="jboss.messaging.destination:service=Queue,name=ExpiryQueue" xmbean-dd="xmdesc/Queue-xmbean.xml">
| <annotation>@org.jboss.system.deployers.managed.ManagementObjectClass(code=org.jboss.jms.server.destination.QueueServiceMO)</annotation>
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| </mbean>
| </server>
The JNDI name of my connection factory is 'QueueConnectionFactory' and the JNDI name of my queue is 'queue/ExA2Queue'. What do I need to edit in the xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4145311#4145311
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4145311
18 years, 3 months