locked
jvm heap allocation problem, running a web service under iis RRS feed

  • Question

  • 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

    Saturday, July 7, 2012 1:19 PM

Answers

  • Might ask them here.

    http://forums.iis.net/

     

     

     


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

    • Marked as answer by Hamidreza G Saturday, July 7, 2012 2:33 PM
    Saturday, July 7, 2012 2:30 PM