简体   繁体   English

可以/我如何强制JBoss和Eclipse只使用一个核心?

[英]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.

相关问题 如何强制Eclipse使用Sun Java? - How can I force Eclipse to use Sun Java? 如何强制 SpringBoot 仅使用多个配置类中的一个? - How can I force SpringBoot to use One and only One of multiple config classes? 如何强制JBoss部署使用特定版本的依赖性而不是已安装的模块? - How can I force a JBoss deployment to use a specific version of a dependency instead of installed modules? 我可以在JBoss 5上使用JBoss MQ吗? 如果是这样,怎么样? - Can I use JBoss MQ on JBoss 5? If so, how? 在Eclipse中启动Jboss时如何运行批处理作业? - How can I run a batch job when start Jboss in eclipse? 如何强制eclipse使用return语句生成我的二传手 - How can I force eclipse to generate my setters with a return statement 我如何使用eclipse构建GUI? (我想只使用swing / awt而没有其他包) - How can I use eclipse to build a GUI? (I want to use only swing/awt and no other packages) 如何在JBoss 6中使用slf4j 1.7.2? - How can I use slf4j 1.7.2 in JBoss 6? 如何减少此代码以仅使用一个while循环? - How can I reduce this code to use only one while loop? 当只使用一个单元格时,如何在 Miglayout 中强制每行 4 个单元格等宽? - How can I force 4 cells per row with equal width in Miglayout when only one cell is used?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM