I am working in social site ,In which client can upload multiple images of any size.
But problem is while uploading much more size image, application giving error related to perm space. To solve this issue i am planning to compress image on client side. For that i feel applet is one option.
but i dont know how i combine applet code with jquery.? OR is there any option for image compression in client side or server side?
Why do you think compressing the uploaded image is going to solve your permgen issue? Permgen issue generally happens because you load too many classes into the JVM (but can happen because of other reasons too). How is adding new classes to the code going to reduce the permgen usage?
You might want to increase your permgen a little bit and then monitor it while running your app under moderate load to check if it increases with usage. If it stays flat, just use the permgen setting that works for you.