Karan Saxena wrote:Hi thanks for the prompt reply :-
Here are the answers to your question :-
1. The speed of my network is around 2 mbps
2. I am using Jboss as 7.1
3.My payload include JSON DATA ,images ,text ,no videos ,,nested jsp
Hope to get an answer soon
2mbps isn't that slow. Are you already experiencing network bottlenecks? If yes, how many concurrent users are using you system? I just want to make sure the problem isn't somewhere else. I thought you were on 56kbps or something.
Anyway, just search Google for "enabling gz compression in jboss 7" to find plenty of answers.
When you configure compression, just remember not to compress already compressed documents, namely; .pdf, .jpg, etc.
Basically, just compress text/html (or jsp output), bmp, wav or anything that is not already compressed by nature.
If you serve high resolution images, video, audio, just downscale the resolution. This might solve your problem if you do not have a high html payload that would be subject to compression for better performances.