File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Long Time Taken to Deploy WAR on JBoss... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Long Time Taken to Deploy WAR on JBoss..." Watch "Long Time Taken to Deploy WAR on JBoss..." New topic
Author

Long Time Taken to Deploy WAR on JBoss...

Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Hi Everyone,

I am trying to deploy a small war file in JBoss around the size of 500KB and I don't know why it is taking more than 45 mins to do it. I see the logs and it gets stuck with this:



And after around 35mins - 45mins i see the application getting deployed. Could you please let me know how to speed up the process?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Which version of JBoss AS?


JBoss In Action
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Well its actually GateIn 3.1, which I downloaded. It came bundled with the JBoss 5.1.0 GA JBoss application server.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

I don't have any experience of using GateIn. But looking at those logs, it doesn't appear to be coming from JBoss Application Server. You might have to ask this question in the GateIn forum here http://community.jboss.org/community/gatein

[My Blog] [JavaRanch Journal]
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
The delay is in the JBoss application. When i try to login to the JBoss Application server it takes a long time to get to the main home page. Then when i try to deploy a war on the JBoss server then also it takes a long time to deploy. This is not a GateIn issue as far as i can see. This is something wrong with the JBoss.

Would lack of virtual memory be a concern?
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10288
    
168

The delay is in the JBoss application. When i try to login to the JBoss Application server it takes a long time to get to the main home page. Then when i try to deploy a war on the JBoss server then also it takes a long time to deploy.


Which application and which page?

This is not a GateIn issue as far as i can see


Do you still see the same delay when the application is deployed on just JBoss AS without GateIn?
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
The strange delay happens when i deploy any application, be it war or ear, especially when the server is left idle for sometime.

The GateIn came bundles with the JBoss server. There's no way to separate out the two. But i do have the JBoss 6 application server i'll try that and let you know.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

especially when the server is left idle for sometime.

Sounds like you are running Windows. If you leave an app idle long enough, Windows will place the whole thing out in the pagefile. Then when you need it again, Windows has to page the whole thing back in, which can be really time consuming because it doesn't do it in bulk but in pieces.

Another possibility is that is the app server is running from a disk other than the one holding the OS, the machine has powered down the disk and you have to wait for the disk to spin back up to swap in pieces of code. I've experienced this on my desktop running both Windows and Linux.
Somnath Mallick
Ranch Hand

Joined: Mar 04, 2009
Posts: 477
Ya. I thought about that! But the thing is, i checked out the normal JBoss and it doesn't have any such issues like that. Only 5-10 seconds at max when left idle for a long time. Its just the GateIn bundled with JBoss. Maybe it is meant to be that way. I'll ask the GateIn community and see what i get. GateIn portal is a heavy stuff... consumes 800MB of RAM approx!

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Long Time Taken to Deploy WAR on JBoss...