开发者

Memory Setting for OC4J in Eclipse

I've looked on the web for a while and can't 开发者_如何学JAVAseem to find the setting to increase the memory allocated to OC4J when launching from Eclipse. Does anyone know where the setting is?

Thanks.


You can add memory setting in the OC4J_JVM_ARGS environment variable. For example you could have something like:

OC4J_JVM_ARGS=-Xmx512m

You could add others if you want:

OC4J_JVM_ARGS=-XX:PermSize=256m -XX:MaxPermSize=256m -Xms1024m -Xmx2048m

Now, I never have run OC4J from Eclipse (only standalone), but you could do the same by selecting your Server view, then Open launch configuration and in the Arguments tab add the values to the VM arguments section directly like:

-Xmx512m 

or

-XX:PermSize=256m -XX:MaxPermSize=256m -Xms1024m -Xmx2048m
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜