且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

* this *真的是从Java代码启动第二个JVM的***方式吗?

更新时间:2023-01-14 22:57:55

目前尚不清楚我总是希望在启动辅助过程时使用完全相同的参数,类路径或其他任何东西(特别是-X类的东西 - 例如,为什么孩子需要与父元素相同的堆设置)。

It's not clear to me that you would always want to use exactly the same parameters, classpath or whatever (especially -X kind of stuff - for example, why would the child need the same heap settings as its parents) when starting a secondary process.

我更喜欢使用某种外部配置来为子节点定义这些属性。这是一个更多的工作,但我认为最终你需要灵活性。

I would prefer to use an external configuration of some sort to define these properties for the children. It's a bit more work, but I think in the end you will need the flexibility.

要查看可能的配置设置的范围,你可能会看到运行配置 Eclipse中的设置。有相当多的标签配置。

To see the extent of possible configuration settings you might look at thye "Run Configurations" settings in Eclipse. Quite a few tabs worth of configuration there.