Jboss startup very slow on Windows Server - java

I'm using Jboss(WildFly 9) to host my Solr application on a Windows Server(2012), but if I start JBoss it's very slow and taking at least 15 mins to start. There is only one app (solr.war).
The same JBoss in my local with the same WAR takes less than a minute to start.
The JVM is set as MIN 4GB and Max 16GB on the servers.
What could be the reason it is very slow?

Try starting the sever without war and if it takes normal time in bootup then check the war code else check the jboss version and logs.

Related

Unable to start tomcat 8 on ubuntu 16.0.4 TLS

I have written an application on REST API's and deployed that on tomcat 8.0.36. When I start the application from eclipse it gives me a timeout message after 45 seconds "Server Tomcat v8.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor."
I have done all the troubleshooting stuff:
1) Deleted the server from the server perspective and re-added the server and tried to re-deploy it
2) get the same message as above.
3) I have tried by launching the tomcat without the application deployed it starts .
Regards
Vilas
To increase the tomcat boot time, you must follow the following steps:
Launch Eclipse
On Servers view, double click on you tomcat server configuration
Find the option Timeouts, this is in the top right of editor
Increase the time, for example 120.

Ubuntu tomcat 8 server CPU 100% prolem

I am working with a ubuntu web server, where I have tomcat 8 and running a web application on tomcat. Recently I have faced some problem with cpu uses 100%. When I restart the tomcat server it is running good, but after one day or a few hour again same problem arise ( 100% cpu use) and that problem make my site slow. When I see the process list with htop command then i see so many process like
/opt/java8/jre/bin/java -Djava.util.logging.config.file=/opt/tomcat8/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoader
The website is a live eCommerce website and average user in every moment is around 100.
The server is a aws ec2 server where a tomcat and a java application inside the tomcat is running. The database (MySql) is in an another aws RDS server.
What can i do in this situation? Please help.

Glassfish can't run on virtual private server

I have an install of glassfish 4 on centOs 6.7 hosted at 1 & 1.
The config is the following :
1 VCPU
1GO RAM
40GO SSD
My max numproc is 160 and whenever I run glassfish and do some operations, I reach the maximum and the server crashes.
I've followed oracle performance tunning guide but not much success with it.
Do I need a server with a config more powerful ?
Thanks in advance

503 Service Unavailable error Apache Tomcat

I try to deploy my Java project Apache Tomcat server but sometimes it gets down and returns me this page
Tomcat is installed on the Digitalocean's Ubuntu 14.04 and droplet's properties are 512Mb/1CPU, 20GB SSD Disk, 1000 GB transfer. I took the lowest option for test purposes. The site is visited by nobody except me and from the graphs I observe that the server is not overloaded at all. Most of the time everything works fine until suddenly the server returns 503. After I restart it keeps working fine again till the next 503 error in several days. I'd like to know what could cause this error: my mistake on configuring the server or maybe problems on server side?
That mean tomcat is not running. You can use the alias command to up the tomcat service or just go in the current directory and start the service.
Example: # tomcatup
/opt/tomcat8/bin/startup.sh

Tomcat StandardClassLoader slow at startup

I have a tomcat installation in a windows enviroment using a raid1 array.
Tomcat takes a lot of time starting, looking into its logs it takes a long time to load all classes in method org.apache.catalina.loader.StandardClassLoader.
The strange thing is that tomcat load takes 80s if I start it just after windows load, otherwise It take 20s and I think this is would be an acceptable time.
How to speed up this load? Can it be connected to the raid configuration?

Categories