Running Java remotely using PowerShell

廉价感情. 提交于 2019-12-01 03:55:36
mjolinor

According to this: http://msdn.microsoft.com/en-us/library/aa384372(VS.85).aspx

MaxMemoryPerShellMB Specifies the maximum amount of memory allocated per shell, including the shell's child processes. The default is 150 MB.

Increase Max Memory Per Shell MB

winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="1000"}' 
Christian Glebbeek

I have a different answer to share with you guys. I found myself in the same situation and increasing memory min/max for Java.exe or using winrm did NOT solve my issue.

I compared two servers: one working and one not working.

I used this link https://technet.microsoft.com/en-us/library/ff520073%28v=ws.10%29.aspx to check my Windows Management Foundation wich is needed to run WINRS and also remote powershell.

the result: Both servers running Windows Server 2008 R2. One server running WMF 2.0, one running WMF 3.0.

To my surprise, the server running 2.0 was working and the one running 3.0 was NOT!

My solution: I upgraded the 3.0 WMF to 4.0!

Just a fyi: we suffered the same symptoms, and had an endless investigation based on the other two answers. The actual solution for us was changing jdk1.8.0_31 to jdk1.8.0_51.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!