[英]Can I / How can I force JBoss & Eclipse to use only one core?
I'm currently running a couple instances of Eclipse -- one has a JBoss server which is hosting a site which I'm testing and the other contains other projects/code which I'm working on. 我目前正在运行几个Eclipse实例 - 一个有JBoss服务器,它托管一个我正在测试的网站,另一个包含我正在研究的其他项目/代码。
My machine is dual core (AMD Atholn II X2 B24 with 4GB of RAM). 我的机器是双核(AMD Atholn II X2 B24,带4GB内存)。
I would like to have one instance running on one core and have the other instance running on the other, so that they don't "interfere" with one another. 我想让一个实例在一个核心上运行,另一个实例在另一个核心上运行,这样它们就不会“干扰”彼此。
Is this even possible? 这甚至可能吗? If so, are there any guides/tutorials/directions that you can point me to?
如果是这样,您可以指点我的指南/教程/指示吗?
Try to run the JBoss Server using sysinternals psexec. 尝试使用sysinternals psexec运行JBoss服务器。
I've been using psexec
to limit the cores on which an application runs, but I'm not sure if it will work in conjunction with Eclipse/JBoss/Java. 我一直在使用
psexec
来限制应用程序运行的核心,但我不确定它是否可以与Eclipse / JBoss / Java一起使用。
http://technet.microsoft.com/en-us/sysinternals/bb897553 http://technet.microsoft.com/en-us/sysinternals/bb897553
Using psexec
, you can limit the the processor core using the -a
parameter. 使用
psexec
,可以使用-a
参数限制处理器内核。
psexec -a 1 c:\windows\notepad.exe
will run notepad on core 1. 将在核心1上运行记事本。
psexec -a 2 c:\windows\notepad.exe
will run it on core 2. 将在核心2上运行它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.