![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
dybr
In the morning I was feeling so good, started to do this memory leak tracking.
Tweaked the logging a little bit, and found that there are two sorts of leak:
- when requests are coming, there's at least several megs gobbled per request
- when the server is idle, every 40 seconds it eats between half a meg and a meg.
Ok, now what. Now i need a profiler. So I'm trying to figure out Java Flight Recorder, following hardly readable Oracle documentation. By "hardly readable" I mean they have gray font on white. Why? It's probably about Larry, who else. Have to ask Andrew maybe. Or Dima. Or... no, not Sandeep. We kind of hate each other.
Anyway, and we had a standup, then a planning meeting; I said it will take between 3 and 5 "points" to find and fix the leak. I could not say "4 points", because we don't have that coin. Only 1,2,3,5.
I actually fell asleep during the planning meeting. Thank god my cam and mic were turned off.
Later I woke up and worked with JFR. We will see. I also asked Jacob if we can purchase "ultimate" IntelliJ. He'll investigate.
There's also JProfiler (still alive), I worked with him for a bunch of years. But I would prefer IntelliJ, and I'm curious about JFR.
Our noobs are really cool, especially this North Carolina man (there are no guys or. dudes in Carolinas). That's how I liked him during the interview: he's an enthusiast. I love enthusiasts. At times they break things (sigh, I was wrong when I fired JEF for breaking our Forth...).
Anyway, I'm still under jet lag, so not exactly behaving reasonably. If you could know how hard it was to do my daily dose of French.
Ok, an update. I decided to to runtime.gc() every 10 seconds.
Problem GONE.
So it's all about JVM parameters regarding gc behavior. No big deal to fix; and even I don't fix it, I can just run this gc thread every 10 seconds. Big deal, really.
How come I, a functional Scala programmer, am supposed to do these devops things, I wonder. But ain't it funny?
no subject
Someday this kludge will surprise someone very much. Someone else. It will be funny.
SREs and devops are paid pretty well, they should to work their wages off.
no subject
That's the problem. It's their bug (I think). But they blame programmers for memory leak.
no subject
no subject
The author left three years ago.
It's not only about who wrote the code, but I even figured out where he got his last name, Price. I believe his ancestors, were Preiss, but here in the US they wanted to not look Jewish or German. And his ethnicity is just visible in the code. The code is not bad, but too formalistic. Not flying. Not enough abstractions.
no subject
"IT-crowd" finally came to reality.
no subject
OMG. I got a feeling that scripting is becoming a rare skill.
no subject
no subject
Именно так. Я не знаю, почему она текла раньше; и не знаю, как вытаскивать сведения из gc. JMX дергать? Ну, если будут еще проблемы, так придется. Сейчас же я просто скопировал рекомендуемые параметры, с оракловского сайта.
no subject
Я, по простоте, полагал, что как бы не был сконфигурирован GC, память он, всё равно, "рано или поздно" освободит. Т.е., если это будет очень поздно, то процесс может и помереть...
Однако, чтобы память просто себе продолжала течь - это новая вещь в моей ограниченной картине мира.
no subject
Я тоже так думал. Но жизнь идет.