我们如何重复使用子过程,而不是在Java Process Builder中一次又一次创建
我正在在子过程中执行某些动作,这基本上是在接受输入和输出。每个呼叫输入都不同。目前,通过命令行arg输入通过。我想重复使用此子过程,而不是在每个呼叫中一次又一次创建以使性能最佳。想要重复使用相同的JVM实例,因为每次我们启动()过程构建器时,将创建带有SEVERATE JVM的新过程,将加载ClassPath库。有什么方法可以实现这一目标。请分享您的想法会有所帮助。提前致谢。
I am performing certain action in subprocess which is basically taking input and giving output. each calls input will be different. for now input passing via command line arg. I want to reuse this subprocess instead of creating again and again in each call to make performance optimal. want to reuse same JVM instance because each time when we start() process builder, new process with seperate JVM will created which will load classpath library. Is there any way to achieve this. please share you ideas will help a lot. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论