windows 从命令行运行 java 实用程序时,没有足够的存储空间来处理此命令
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1241838/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Not enough Storage is available to process this command when running java utilities from command line
提问by marc esher
I'm on Windows Vista 64 bit, with a 64 bit jvm installed. I'm trying to use jstack and jmap -- two utilities that come with the JDK -- to peek into an application server's guts. This works fine on a windows xp machine, 32 bit.
我在 Windows Vista 64 位上,安装了 64 位 jvm。我正在尝试使用 jstack 和 jmap(JDK 附带的两个实用程序)来窥探应用程序服务器的内部结构。这在 32 位 windows xp 机器上工作正常。
However, when I run these commands against the processid for a ColdFusion application server on this vista64 machine, I get the error message in the title of this post.
但是,当我针对这台 vista64 机器上的 ColdFusion 应用程序服务器的 processid 运行这些命令时,我收到了这篇文章标题中的错误消息。
All I'm doing is running jstack , where pid is the processid of my CF server, and I'm getting this
我所做的就是运行 jstack ,其中 pid 是我的 CF 服务器的进程 ID,我得到了这个
this machine has plenty of available memory, but I highly doubt it's a memory problem. The reason I say that is that if I start JBoss, which is taking up just as much memory as CF, I can run jstack against that process.
这台机器有足够的可用内存,但我非常怀疑这是内存问题。我这么说的原因是,如果我启动 JBoss,它占用的内存与 CF 一样多,我可以针对该进程运行 jstack。
Thanks for advice
谢谢你的建议
采纳答案by marc esher
Figured it out. The problem was that ColdFusion was running as a windows service. By stopping the service and running from the command line (jrun start cfusion) , I was able to successfully use the JDK tools
弄清楚了。问题是 ColdFusion 作为 Windows 服务运行。通过停止服务并从命令行运行(jrun start cfusion),我能够成功使用 JDK 工具
回答by Markus
this posting provides details on how to execute jstack when the process is running as a windows service. basically, use the psexec command.
这篇文章提供了有关如何在进程作为 Windows 服务运行时执行 jstack 的详细信息。基本上,使用 psexec 命令。
Jstack and Not enough storage is available to process this command