简体   繁体   中英

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.

My machine is dual core (AMD Atholn II X2 B24 with 4GB of RAM).

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.

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.

http://technet.microsoft.com/en-us/sysinternals/bb897553

Using psexec , you can limit the the processor core using the -a parameter.

psexec -a 1 c:\windows\notepad.exe

will run notepad on core 1.

psexec -a 2 c:\windows\notepad.exe

will run it on core 2.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM