Java Runtime.getRuntime().exec() alternatives

前端 未结 6 631
梦谈多话
梦谈多话 2020-11-30 03:50

I have a collection of webapps that are running under tomcat. Tomcat is configured to have as much as 2 GB of memory using the -Xmx argument.

Many of the webapps ne

6条回答
  •  独厮守ぢ
    2020-11-30 04:26

    Another alternative is to have a separate exec process running that watches either a file or some other type of "queue". You append your desired command to that file, and the exec server spots it, running the command, and somehow writing the results to another location you can get.

提交回复
热议问题