Steve Wilwerding
2012-02-17
The software works great to create Windows services, but the services will exit when I logoff - is there a way in the software to pass -Xrs to the JVM?
Tom Lorenz
2012-02-20
I added the parameter to the file skeletons\commonjava\SunJVMDLL.cpp and recompiled the skeleton winservice:
bool SunJVMDLL::setupVM12DLL(CreateJavaVM_t CreateJavaVM, GetDefaultJavaVMInitArgs_t GetDefaultJavaVMInitArgs) { vector<string> jpropstrv; for (int i=0; i<m_properties.size(); i++) jpropstrv.push_back( "-D" + m_properties[i].getName() + "=" + m_properties[i].getValue()); // DEBUG("MAXHEAP: " + StringUtils::toString(m_maxHeap)); // DEBUG("INITIALHEAP: " + StringUtils::toString(m_initialHeap)); if (m_maxHeap > 0) { jpropstrv.push_back("-Xmx" +StringUtils::toString(m_maxHeap)); } if (m_initialHeap > 0) { jpropstrv.push_back("-Xms" + StringUtils::toString(m_initialHeap)); } [b]// for service jpropstrv.push_back("-Xrs");[/b]
Mudasser
2012-08-31
plz let me know from where i can foud that files
SunJVMExe.cpp or SunJVMDLL.cpp
even i did serach on my system not able to find even not able find that path
skeletons\commonjava\
plz let me know.
its very urgent
Thanks
Regards
Mudasser