Swap space not getting used

CENT OS 5.8 server running with a huge java application which uses up all my ram (4GB) and requires excess of atleast 2GB.But the swap is not getting used up((8GB) of swap space left unused) leading a wierd error and stopping application to stop working.

Any one here dealt with the same kind of issue I am in a big trouble regarding to this issue.:frowning:

Exactly what sort of weird error are you getting? Is your application terminated with an exception? Does the exception say that you need more heap space?

The more information you provide, the better people can help you.

Please post the error message. That would help us a lot....