How to set maximum number of processes for Jetbrains YouTrack

view story

http://serverfault.com – I run YouTrack on a small server. By default it launches a lot of processes that take all available memory. Manipulations with Java parameters don't help, so as I see, the only way to reduce memory usage is to limit the number of processes. Is there a way to do that? (HowTos)