This content has been marked as final. Show 1 reply
koolk1990 wrote:Your server does one of the following
how to acheive this remote compilation and execution.
1. Use Runtime.exec/Process to run javac.
2. Use the programmatic interface.
my site has thousands of users.so it must be less server intensive.Which doesn't mean much unless you have thousands of users hitting a compile button repeatedly on large source files.
But if you have an actual problem then there a many solutions. Some possibilities.
1. Queue requests and fail newest if queue is 'full' (bigger than 'X').
2. Queue requests via peristent storage and provide the user with a unique tracking id. The user then checks later to see the results using the tracking id to find those.