Two VMs urgent solution required

hi, am using eclipse for developing dynamic web project ... running tomcat within eclipse... now problem is , its running two VMs ... one for eclipse and another for server.. and consuming lot of memory...can anybody give a solution?/cheerssree
[286 byte] By [sree-123a] at [2007-10-2 5:33:06]
# 1
Only run one? Change whatever is necessary to eliminate one of them.You're going to have to provide a lot more information for more of an answer than that.
ChuckBinga at 2007-7-16 1:43:56 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
do one thingset the class path of JVM (Eclipse) in the environment variable.set the Tomcat JVM to the JVM(Eclipse).this can be done while installingor u can do the things by manupulating the xml file
phanidharkumara at 2007-7-16 1:43:56 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
u can do this saving of memory in other waycheck the JVM which tomcat server is using andfor after that run the eclipse by usingeclipse -vm (path of jvm which tomcat server is using)egeclipse -vm c:\j2sdk1.4.2_04\jre\bin\javaw
phanidharkumara at 2007-7-16 1:43:56 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4

> now problem is , its running two VMs ... one for

> eclipse and another for server.. and consuming lot

> of memory...

That's the way it is supposed to be - two different application with different address spaces; after all, you wouldn't want Tomcat crash Eclipse, would you?

Since you didn't provide much info about your hardware/OS, I can't say much besides telling you to buy more RAM, or close any unecessary applications. You might also want to make sure that both Tomcat and Eclipse are started with the Client JVM (-client), and perhaps they'll save some memory that way.

dinokleina at 2007-7-16 1:43:56 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 5

>That's the way it is supposed to be - two different application with >different address spaces; after all, you wouldn't want Tomcat crash >Eclipse, would you?

>about your hardware/OS

i think u r currect.....

i ask that q just because tomcat is running within eclipse... i have used WTP(eclipse) project for developing web project........

it may be possible... but i think need to change 'source' for that.... i am not looking that deep....

Os is windows xp home

p 4 2.8Ghz

sree-123a at 2007-7-16 1:43:56 > top of Java-index,Java HotSpot Virtual Machine,Specifications...