<h2>MID Server fails to start when JVM Max Heap Memory is greater than 2 GB</h2><br/><div style="overflow-x:auto"><article><div ><h3 >Issue </h3><section><style type="text/css"><!-- div.margin { padding: 10px 40px 40px 30px; } table.tocTable { border: 1px solid; border-color: #e0e0e0; background-color: #fff; } .title { color: #d1232b; font-weight: normal; font-size: 28px; } h1 { color: #d1232b; font-weight: normal; font-size: 21px; margin-bottom: 5px; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: #cccccc; } h2 { color: #646464; font-weight: bold; font-size: 18px; } h3 { color: #000000; font-weight: bold; font-size: 16px; } h4 { color: #666666; font-weight: bold; font-size: 15px; } h5 { color: #000000; font-weight: bold; font-size: 13px; } h6 { color: #000000; font-weight: bold; font-size:14px; } ul, ol { margin-left: 0; list-style-position: outside; } --></style> <div class="margin"> <h1>Symptoms</h1> <ul style="list-style-position: inside;"><li>After upgrading ServiceNow instance, new MID server installations will not run with the "wrapper.java.maxmemory" value larger than 1024.</li></ul> <h1>Steps to Reproduce</h1> <p style="padding-left: 40px;">1. Open the 'agent\conf\wrapper-override.conf'<br />2. Edit the 'wrapper.java.maxmemory=1024' to reflect 'wrapper.java.maxmemory=4096'<br />3. Save the 'agent\conf\wrapper-override.conf'<br />4. Restart the 'ServiceNow Mid Server Service'<br />5. Observe that the 'ServiceNow Mid Server Service' does not 'Start'</p> <h1>Cause</h1> <ul style="list-style-position: inside;"><li>32-bit JVMs which expect to have a single large chunk of memory cannot use more than 2 Gb heap memory.</li></ul> <h1>Resolution</h1> <ul style="list-style-position: inside;"><li>Check if the host machine is using 32-bit JRE Architecture. Navigate to "System Definition -> Scripts - Background" and run the following script ms.log(Packages.java.lang.System.getProperty(‘sun.arch.data.model’)). If the result returns 32 then it is using 32bit Architecture JRE/JDK.</li><li>Resolution: Download and install 64bit JRE/JDK, then change the wrapper-override.conf file to point to the new installation.</li></ul> </div></section></div></article></div>