A
A
Alexander Fomin2015-03-10 11:51:47
Java
Alexander Fomin, 2015-03-10 11:51:47

Is there a way to share server resources between users of a Java application?

Good day, dear experts! Is there any way to separate the users of a Java application running under Tomcat by server resources?
Description of the situation :
There is an application written in Java running under the control of a Tomcat server. Occasionally, users may perform actions that cause the server to load at 100% for an extended period of time. It is required to limit users in server resources so that one user cannot "fill up" the entire server.
The only thing that has come to mind so far is to containerize the entire application in Docker and run a separate resource-limited container for each user.
There is a feeling that I am missing some simpler solution =(

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Puma Thailand, 2015-03-10
@opium

put several cores on the server, if the application is single-threaded, then the user uses only one core and the rest will be free.

N
Nikita, 2015-03-10
@jkotkot

* Make a task processing queue.
* Add servers and send work there
* Programmatically do Thread.yield
* Something else depending on the specifics of the application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question