N
N
Nikita Gusakov2014-09-28 17:34:45
Java
Nikita Gusakov, 2014-09-28 17:34:45

How to properly set up stash?

Put stash on DO server for $20 (2gb ram, 2 cores).
https://gist.github.com/nkt/0f766894614d14e33e55 - I set it up like this, for the future I threw the instruction
JVM_MINIMUM_MEMORY="512m"
JVM_MAXIMUM_MEMORY="2048m"
As a sql server - postgres.

The initial load is insanely long, I turned on profiling - in my opinion it gives statics for a long time, can somehow I transfer this matter to nginx?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Chistyakov, 2014-09-28
@alexclear

I strongly doubt that the matter is in statics, more precisely, I have no doubt that it is not in it.
Get a trial license for YourKit and try to run stash under YourKit - most likely, its code is obfuscated, but it won't hurt to look at the alignment of the longest functions. You can make it even easier - once a second, shoot thread dumps via jstack and see what kind of functions are on the top.
By the way, about the top - what and how does the processor take during the brakes? Resting on I / O, or just on the CPU? Perhaps they ran into garbage collection - then it would be nice to enable GC debugging and see how often and how efficiently minor and major collections run.
And, yes, tomcat with native libs does not need nginx - it can do NIO.

N
Nikolai Pavlov, 2014-12-11
@gurinderu

Tomkat gives good statics. You need to look at the statistics.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question