Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

jvm heap allocation problem, running a web service under iis

$
0
0

 

Hi,

I have developed a C++ dll in which I use JNI to load java virtual machine with a specified size of memory. I use the option "Xmx1024m" to set maximum heap size of the java virtual machine and the method JNI_CreateJavaVM to create the virtual machine. When I run the application under Visual Studio, everything works fine and the virtual machine is created with the specified memory size. But when I use the dll in a asmx web service, which is deployed under IIS-6 the method returns -4 which means that there is not enough contiguous memory to create the virtual machine. If I change the option to "Xmx256m" it works fine, but I need the virtual machine to have a heap of size 1024m. I want to know how I can make it possible under IIS?

Regards,

Hamidreza Ghader


Viewing all articles
Browse latest Browse all 27852

Trending Articles