Solved

Is it a good practice to place all static files out of a WAR/EAR file?

Posted on 2013-06-06
5
525 Views
Last Modified: 2013-06-06
0
 
down vote
favorite  For all my business applications, I place my css files, images, javascript (jquery, plugins, functions JS files, etc.) within my project.

I am using jBoss as my application server, fronted by an Apache server and mod_jk (using the AJP protocol). By looking at the jBoss tomcat status page, I am seeing a lot of current threads on stuffs like JS files, css files, etc... So, my thought is that if these static files were hosted somewhere else, it would not have to be managed by jBoss, resulting in less work required by jBoss.

The reason why I am concerned by that is that my application has a lot of concurrent connections, and sometimes it hits the maximum number of current threads (250). Before adding new jBoss instances to the load balancing mechanism, I want to make sure my application is properly set up in its structure.

Am I wrong? What is the best practice for building web business application?

Thank you!
0
Comment
Question by:SolutionsTI
  • 2
  • 2
5 Comments
 
LVL 16

Accepted Solution

by:
Valeri earned 350 total points
ID: 39225570
0
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 150 total points
ID: 39226490
Is it a good practice to place all static files out of a WAR/EAR file?
Simple answer is yes - that's what Apache is optimised for so they should be served by it where possible. It must be said though that unless the client is badly constructed, that type of content should be cached client-side anyway
0
 

Author Comment

by:SolutionsTI
ID: 39226499
Is there any efficient or standard way to "cache" these things on the client-side?

Thanks
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39226528
That, as i said, should really happen automatically. e.g. you should see that if you examine your browser cache
0
 

Author Comment

by:SolutionsTI
ID: 39226536
Okay, I thought you were recommending a third party caching way.

Thank you guys
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now