[JBoss Getting Started Documentation] - How to reduce Jboss Startup Time
by kashif_jboss
Hi All,
Sorry if i am posting this question again but i m unable to find its answer.
i have just installed Latest Jboss 5.0. and have deployed my application successfully. but my problem is that Jboss is takeing 2 much time to start. in parallel i am using tomcat to deploy my application and it takes only 15-20 seconds to deploy my application. but Jboss takes almost 4 minutes to deploy it.
Wt i see is that Jboss is waiting for something at some point. here is logs..
19:03:31,989 INFO [ServerInfo] OS-System: Linux 2.6.18-92.el5xen,i386
19:03:32,108 INFO [JMXKernel] Legacy JMX core initialized
19:03:42,900 INFO [ProfileServiceImpl] Loading profile: default from:
org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository(a)6a150e(root=/u/bin/jboss-5.0.0.GA/server,
key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
19:03:42,906 INFO [ProfileImpl] Using
repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@6a150e(root=/u/bin/jboss-5.0.0.GA/server,
key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
19:03:42,907 INFO [ProfileServiceImpl] Loaded profile:
ProfileImpl@659812{key=org.jboss.profileservice.spi.ProfileKey(a)143b82c3[domain=default,server=default,name=default]}
19:03:51,292 INFO [WebService] Using RMI server codebase: http://192.168.0.86:8083/
19:04:17,531 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
19:04:17,532 INFO [NativeServerConfig] 3.0.4.SP1
19:06:00,826 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://192.168.0.86/jndi/rmi://192.168.0.86:1090/jmxconnector
19:06:01,764 INFO [MailService] Mail Service bound to java:/Mail 19:06:08,937 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component
which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging
user guide for instructions on how to do this.
19:06:09,085 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
19:06:09,497 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
19:06:09,497 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
19:06:10,256 INFO [TransactionManagerService] Initializing recovery manager
19:06:10,719 INFO [TransactionManagerService] Recovery manager configured
19:06:10,719 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
19:06:10,810 INFO [TransactionManagerService] Starting transaction recovery manager
19:06:12,858 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
19:06:12,861 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
19:06:12,862 INFO [StandardService] Starting service jboss.web
19:06:12,870 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.GA
19:06:13,002 INFO [Catalina] Server startup in 719 ms
19:06:13,090 INFO [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war
19:06:15,550 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war
19:06:16,868 INFO [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-management.war
i can easily see that jboss is stuck at some point and waiting for some thing for almost 2 minutes(from 3.53 to 6.01 minutes)... dont know wt is this...and wt iit is doing there.....
also i know that it deploys alot of unnecessary things that are not required by me on default setting.
so can anyone please tell me how can i reduce its startup time?
Thanks in advance.
Kashif
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206555#4206555
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4206555
17 years, 2 months
[Beginners Corner] - How to reduce Jboss Startup Time
by kashif_jboss
Hi All,
Sorry if i am posting this question again but i m unable to find its answer.
i have just installed Latest Jboss 5.0. and have deployed my application successfully. but my problem is that Jboss is takeing 2 much time to start. in parallel i am using tomcat to deploy my application and it takes only 15-20 seconds to deploy my application. but Jboss takes almost 4 minutes to deploy it.
Wt i see is that Jboss is waiting for something at some point. here is logs..
19:03:31,989 INFO [ServerInfo] OS-System: Linux 2.6.18-92.el5xen,i386
19:03:32,108 INFO [JMXKernel] Legacy JMX core initialized
19:03:42,900 INFO [ProfileServiceImpl] Loading profile: default from:
org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository(a)6a150e(root=/u/bin/jboss-5.0.0.GA/server,
key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
19:03:42,906 INFO [ProfileImpl] Using
repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@6a150e(root=/u/bin/jboss-5.0.0.GA/server,
key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
19:03:42,907 INFO [ProfileServiceImpl] Loaded profile:
ProfileImpl@659812{key=org.jboss.profileservice.spi.ProfileKey(a)143b82c3[domain=default,server=default,name=default]}
19:03:51,292 INFO [WebService] Using RMI server codebase: http://192.168.0.86:8083/
19:04:17,531 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
19:04:17,532 INFO [NativeServerConfig] 3.0.4.SP1
19:06:00,826 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://192.168.0.86/jndi/rmi://192.168.0.86:1090/jmxconnector
19:06:01,764 INFO [MailService] Mail Service bound to java:/Mail 19:06:08,937 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component
which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging
user guide for instructions on how to do this.
19:06:09,085 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
19:06:09,497 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
19:06:09,497 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
19:06:10,256 INFO [TransactionManagerService] Initializing recovery manager
19:06:10,719 INFO [TransactionManagerService] Recovery manager configured
19:06:10,719 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
19:06:10,810 INFO [TransactionManagerService] Starting transaction recovery manager
19:06:12,858 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
19:06:12,861 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
19:06:12,862 INFO [StandardService] Starting service jboss.web
19:06:12,870 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.GA
19:06:13,002 INFO [Catalina] Server startup in 719 ms
19:06:13,090 INFO [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war
19:06:15,550 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war
19:06:16,868 INFO [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-management.war
i can easily see that jboss is stuck at some point and waiting for some thing for almost 2 minutes(from 3.53 to 6.01 minutes)... dont know wt is this...and wt iit is doing there.....
also i know that it deploys alot of unnecessary things that are not required by me on default setting.
so can anyone please tell me how can i reduce its startup time?
Thanks in advance.
Kashif
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206554#4206554
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4206554
17 years, 2 months
[JBoss Cache: Core Edition] - ExpirationPolicy & ClusteredCacheLoader
by lovelyliatroim
Hi Guys,
Im am using the clustered cache loader and in one of my regions i use the ExpirationPolicy.
Im noticing something strange when i started playing with it, the eviction policy does not seem to work for data that is gravitated from a different node.
Lets say i have a region configured called "a/b" with a max set of a 1000.
Now when i add to the cache i place a path with values like so "a/b/c/d/e", now e is the node that i place the data item and also place the expiration time. When you do this you see the algorithm complains and you see logs like so
| 14:03:51,921 [EvictionTimer-1] WARN eviction.ExpirationAlgorithm - Unable to remove nodes to reduce region size below 10000. Set expiration for nodes in this region
|
Thats because I assume the nodes c and d dont have the expiration policy value set. (Thats fine).
Now when I start 2 nodes, i ask node1 for "a/b/c/d/e", it doesnt have it so retrieves from the data source, i then add it to the cache in node1. I then start to see the above logs which is fine.
Now i ask for the same data item from node2, the data is gravitated over via the clusteredcache loader and i return the value. Now i dont see any logs like above that tells me the eviction policy is started on node2 for that region. When the time has elapsed for the data item to be expired, it will expire on node1 but it does not expire on node2. When i add a different data item to the same region in node2 lets say "a/b/c/d/e2", i start seeing the logs, after the expiration time "e2" gets evicted but "e" still exists.
Havent looked under the bonnet yet but it looks to me that data that is gravitated over via the clustered cache loader is not getting registered with the ExpirationPolicy algorithm, it simply thinks there is no data in this region to evict hence it doesnt start and when there is other data items in the region, it will evict them but the gravitated data item is still not getting cleaned up!!
Using the 2.2GA version.
Any insight??
Thanks,
LL
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4206546#4206546
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4206546
17 years, 2 months