[JBoss Messaging] - Re: Queue Loading - OutOfMemory
by Craig2007
Thanks very much tim for correcting me.
For Your Kind reference
I am pasting my server console log for your reference
In that log i could able to see the spelling of FullSize, PageSize and DownCacheSize to be fullSize, pageSize and downCacheSize.
In addition to that , i also see the spelling for those parameters to be wrong in the UserManual PDF (JbossMessagingUsersGuide - Page Number 25)
All these made me to have the wrong parameter name.
|
| C:\jboss-4.0.4.GA_Server\bin>run -c messaging
| ===============================================================================
| .
| JBoss Bootstrap Environment
| .
| JBOSS_HOME: C:\jboss-4.0.4.GA_Server\bin\\..
| .
| JAVA: C:\j2sdk1.4.2_13\bin\java
| .
| JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
| .
| CLASSPATH: C:\j2sdk1.4.2_13\lib\tools.jar;C:\jboss-4.0.4.GA_Server\bin\\run.jar
| .
| ===============================================================================
| .
| 10:19:29,183 INFO [Server] Starting JBoss (MX MicroKernel)...
| 10:19:29,199 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
| 10:19:29,199 INFO [Server] Home Dir: C:\jboss-4.0.4.GA_Server
| 10:19:29,199 INFO [Server] Home URL: file:/C:/jboss-4.0.4.GA_Server/
| 10:19:29,214 INFO [Server] Patch URL: null
| 10:19:29,214 INFO [Server] Server Name: messaging
| 10:19:29,214 INFO [Server] Server Home Dir: C:\jboss-4.0.4.GA_Server\server\messaging
| 10:19:29,214 INFO [Server] Server Home URL: file:/C:/jboss-4.0.4.GA_Server/server/messaging/
| 10:19:29,214 INFO [Server] Server Log Dir: C:\jboss-4.0.4.GA_Server\server\messaging\log
| 10:19:29,214 INFO [Server] Server Temp Dir: C:\jboss-4.0.4.GA_Server\server\messaging\tmp
| 10:19:29,214 INFO [Server] Root Deployment Filename: jboss-service.xml
| 10:19:30,433 INFO [ServerInfo] Java version: 1.4.2_13,Sun Microsystems Inc.
| 10:19:30,433 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.4.2_13-b06,Sun Microsystems Inc.
| 10:19:30,433 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
| 10:19:31,074 INFO [Server] Core system initialized
| 10:19:35,856 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
| 10:19:45,201 INFO [SnmpAgentService] SNMP agent going active
| 10:19:45,388 INFO [AspectDeployer] Deployed AOP: file:/C:/jboss-4.0.4.GA_Server/server/messaging/deploy/tc5-cluster.sar/tc5-cluster.aop
| 10:19:45,623 INFO [TreeCache] setting cluster properties from xml to: UDP(down_thread=false;enable_bundling=true;ip_ttl=2;loopback=false;max_bundle_size=64000;max_bundle_timeout=30;mcast_addr=230.1.2.7;mcast_port=45577;mcast_recv_buf_size=25000000;mcast_send_buf_size=640000;ucast_recv_buf_size=20000000;ucast_send_buf_size=640000;up_thread=false;use_incoming_packet_handler=true;use_outgoing_packet_handler=true):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(down_thread=false;max_interval=100000;min_interval=20000;up_thread=false):FD(down_thread=false;max_tries=5;shun=true;timeout=2500;up_thread=false):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(discard_delivered_msgs=true;down_thread=false;gc_
| lag=50;max_xmit_size=60000;retransmit_timeout=100,200,300,600,1200,2400,4800;up_thread=false;use_mcast_xmit=false):UNICAST(down_thread=false;timeout=300,600,1200,2400,3600;up_thread=false):pbcast.STABLE(desired_avg_gossip=50000;down_thread=false;max_bytes=2100000;stability_delay=1000;up_thread=false):pbcast.GMS(down_thread=false;join_retry_timeout=2000;join_timeout=3000;print_local_addr=true;shun=true;up_thread=false):FC(down_thread=false;max_credits=10000000;min_threshold=0.20;up_thread=false):FRAG2(down_thread=false;frag_size=60000;up_thread=false):pbcast.STATE_TRANSFER(down_thread=false;up_thread=false)
| 10:19:46,357 INFO [WebService] Using RMI server codebase: http://01hw044682:8083/
| 10:19:49,186 INFO [MailService] Mail Service bound to java:/Mail
| 10:19:49,717 INFO [DefaultPartition] Initializing
| 10:19:49,873 INFO [TreeCache] interceptor chain is:
| class org.jboss.cache.interceptors.CallInterceptor
| class org.jboss.cache.interceptors.PessimisticLockInterceptor
| class org.jboss.cache.interceptors.UnlockInterceptor
| class org.jboss.cache.interceptors.ReplicationInterceptor
| 10:19:49,873 INFO [TreeCache] cache mode is REPL_ASYNC
| 10:19:49,967 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory
| 10:19:50,045 INFO [SubscriptionManager] Bound event dispatcher to java:/EventDispatcher
| 10:19:50,092 INFO [STDOUT]
| -------------------------------------------------------
| GMS: address is 01hw044682.TCSDZ.COM:1276 (additional data: 20 bytes)
| -------------------------------------------------------
| 10:19:52,124 INFO [DefaultPartition] Number of cluster members: 1
| 10:19:52,124 INFO [DefaultPartition] Other members: 0
| 10:19:52,124 INFO [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
| 10:19:52,139 INFO [DefaultPartition] New cluster view for partition DefaultPartition (id: 0, delta: 0) : [192.168.251.101:1099]
| 10:19:52,155 INFO [DefaultPartition] I am (192.168.251.101:1099) received membershipChanged event:
| 10:19:52,155 INFO [DefaultPartition] Dead members: 0 ([])
| 10:19:52,155 INFO [DefaultPartition] New Members : 0 ([])
| 10:19:52,155 INFO [DefaultPartition] All Members : 1 ([192.168.251.101:1099])
| 10:19:52,202 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, backlog=50, bindAddress=/0.0.0.0
| 10:19:52,202 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.0.0.0:1102, group=230.0.0.4, HA-JNDI address=192.168.251.101:1100
| 10:19:53,077 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000E000010200000000103139322E3136382E3235312E313031000DC80000000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000005400000000000000010000000000000024000000220000007E0000000000000001000000103139322E3136382E3235312E313031000DC90000000000000000000000000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
| 10:19:53,139 INFO [STDOUT]
| -------------------------------------------------------
| GMS: address is 01hw044682.TCSDZ.COM:1278
| -------------------------------------------------------
| 10:19:55,171 INFO [TreeCache] my local address is 01hw044682.TCSDZ.COM:1278
| 10:19:55,171 INFO [TreeCache] state could not be retrieved (must be first member in group)
| 10:19:55,171 INFO [TreeCache] viewAccepted(): [01hw044682.TCSDZ.COM:1278|0] [01hw044682.TCSDZ.COM:1278]
| 10:19:55,186 INFO [TreeCache] Cache is started!!
| 10:19:55,186 INFO [TreeCache] new cache is null (may be first member in cluster)
| 10:19:55,358 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000E000010200000000103139322E3136382E3235312E313031000DC80000000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000005400000000000000010000000000000024000000220000007E0000000000000001000000103139322E3136382E3235312E313031000DC90000000000000000000000000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
| 10:19:56,312 INFO [Embedded] Catalina naming disabled
| 10:19:56,390 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
| 10:19:56,390 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
| 10:19:56,921 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
| 10:19:56,937 INFO [Catalina] Initialization processed in 547 ms
| 10:19:56,937 INFO [StandardService] Starting service jboss.web
| 10:19:56,937 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.17
| 10:19:56,984 INFO [StandardHost] XML validation disabled
| 10:19:57,015 INFO [Catalina] Server startup in 78 ms
| 10:19:57,327 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
| 10:19:57,734 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
| 10:19:59,203 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
| 10:19:59,500 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp44556jbossws-exp.war/
| 10:19:59,843 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
| 10:20:01,015 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
| 10:20:01,140 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
| 10:20:01,219 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
| 10:20:01,281 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
| 10:20:01,359 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms-ra.rar
| 10:20:01,437 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
| 10:20:01,719 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:name=DefaultDS,service=DataSourceBinding' to JNDI name 'java:DefaultDS'
| 10:20:05,407 INFO [ServerPeer] JBoss Messaging 1.0.1.GA server [server.0] started
| 10:20:05,985 INFO [ConnectionFactory] Connector socket://192.168.251.101:4457 has leasing enabled, lease period 20000 milliseconds
| 10:20:05,985 INFO [ConnectionFactory] [/ConnectionFactory, /XAConnectionFactory, java:/ConnectionFactory, java:/XAConnectionFactory] deployed
| 10:20:06,094 INFO [Topic] Topic[/topic/CRMTOPIC] started, fullSize=1000, pageSize=2000, downCacheSize=2000
| 10:20:06,188 INFO [Topic] Topic[/topic/POSTOPIC] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 10:20:06,188 INFO [Topic] Topic[/topic/receiverShutdownTopic] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 10:20:06,204 INFO [Topic] Topic[/topic/shutdownthisreceiverTopic] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 10:20:06,219 INFO [Topic] Topic[/topic/registeredreceiverTopic] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 10:20:06,235 INFO [Queue] Queue[/queue/activeListenerQueue] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 10:20:06,250 INFO [Queue] Queue[/queue/sentMessageQueue] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 10:20:06,266 INFO [Queue] Queue[/queue/failureMessageQueue] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 10:20:06,282 INFO [Queue] Queue[/queue/replyMessageQueue] started, fullSize=75000, pageSize=2000, downCacheSize=2000
| 10:20:06,313 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:name=JmsXA,service=ConnectionFactoryBinding' to JNDI name 'java:JmsXA'
| 10:20:06,782 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
| 10:20:07,047 INFO [TomcatDeployer] deploy, ctxPath=/msgwebapps, warUrl=.../deploy/msgwebapps.war/
| 10:20:07,860 ERROR [STDERR] log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
| 10:20:07,860 ERROR [STDERR] log4j:WARN Please initialize the log4j system properly.
| 10:20:09,860 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
| 10:20:10,032 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
| 10:20:10,079 INFO [JkMain] Jk running ID=0 time=0/62 config=null
| 10:20:10,110 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 40s:896ms
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068508#4068508
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068508
18Â years, 8Â months
[JBoss Seam] - Dynamic navigation
by matt.drees
Is there a reason view-ids in nav rules in pages.xml couldn't be expression language statements?
for example:
| <navigation from-action="#{simpleComponent.doSomething}">
| <redirect view-id="#{dynamicNavigationManager.nextPage}"/>
| </navigation>
|
Right now, I can do something like
| SimpleComponent {
|
| @In dynamicNavigationManager
|
| public String doSomething() {
| ...
| return dynamicNavigationManager.nextPage();
|
| }
|
But it'd be nice to keep SimpleComponent as simple as possible, and have doSomething() return void. Also, this method forces a redirect (which is usually what I want, but maybe sometimes you don't. There was a recent forum post of someone who didn't).
I'll probably create a Jira request, but thought I'd post here to see if anyone thought it was clearly a bad idea.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068503#4068503
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068503
18Â years, 8Â months
[JBoss jBPM] - 4N queries for task assignment list
by DavidInTx
Hi,
In the seam 2.0.0.Beta 1 dvdstore example, which uses jbpm, one of the admin pages lists all the tasks assigned to the group of the admin, allowing the admin to assign one of the tasks to him or herself. In this page, a task represents an order placed in the store.
Each time a new order is placed in the store, the number of tasks on that admin page goes up by one, as would be expected. However, the number of queries used render the page of tasks goes up by 4 each time a new order is placed.
This seems bad. I asked about this in the seam forum, and got this back from Gavin:
anonymous wrote :
| AFAIK, this is a jBPM question, not a Seam question, unless you have evidence otherwise.
The specific bit of code in the seam bpm libs that is being called is :
return ManagedJbpmContext.instance()
.getGroupTaskList( new ArrayList( Actor.instance().getGroupActorIds() ) );
which is basically just calling getGroupTaskList on an org.jbpm.JbpmContext instance.
So, is this something that is a known issue with the getGroupTaskList method? Is there a better way to get the same information without 4N queries?
Reference to the post in the seam forum:
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=114668
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068502#4068502
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068502
18Â years, 8Â months
[JBoss Seam] - How can I disable the query cache?
by chicochen
I find "project.moduleItems" can't be refreshed automaticly, after adding a new module.
Are there any ways to just clear certain object - "project",
I not like to use "entityManager.clear();", as I know it will clear all the cached object, is it a problem?
public Project getProjectDetail(Long projectid) {
| String sql = "select DISTINCT p from Project p";
| sql += " left join fetch p.pm";
| sql += " left join fetch p.dm";
| sql += " left join fetch p.tm";
| sql += " left join fetch p.customer";
| sql += " left join fetch p.moduleItems";
| sql += " left join fetch p.qaItems";
| sql += " left join fetch p.devItems";
| sql += " left join fetch p.phaseItems";
| sql += " where p.projectid = " + projectid;
| sql += " order by p.name";
| entityManager.clear();
| Project p = (Project)entityManager.createQuery(sql).getSingleResult();
| return p;
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068501#4068501
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068501
18Â years, 8Â months