我们如何重复使用子过程,而不是在Java Process Builder中一次又一次创建

发布于 2025-02-12 01:59:37 字数 198 浏览 1 评论 0原文

我正在在子过程中执行某些动作,这基本上是在接受输入和输出。每个呼叫输入都不同。目前,通过命令行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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文