-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High concurrency, stanfordnlp out of memory error. #1461
Comments
Is there any way you can get us a snapshot of the heap profile when it runs
out of memory like that? Especially a profile of its allocation traces
would be helpful. We have a demo server that stops working every couple
months, and I believe the reason is it has too much memory fragmentation or
otherwise runs out of memory, but with how rarely it happens it's hard to
debug.
|
We use java services to provide functionality, do you mean to print out the jstack information and send it to you after we serve out of memory? |
Well, a heap profile would be better, if that's in any way possible. The
last time I got a stack trace from my server, the threads were all stuck
waiting on allocations, as far as I could tell, but I don't think I
actually got any actionable information from that attempt.
|
Is the heap profile a tool that is used to monitor the heap, or something else.I haven't used this tool before, perhaps you could give me a brief introduction on how to use it to help you deal with this problem. Today, I looked at the error log of the service and found a new problem causing stackoverflow. It's not a common occurrence, and it only happened three times during the day. This kind of error, whether because some special circumstances cause the code infinite recursion.I tried several scenarios and performed pressure tests in a local environment and did not reproduce the problem. |
…stead, just loop until the vertexIterator is used up. Observed in #1461
That other error must have been a very unusual sentence. I can change it so there isn't a recursive call, but rather it iterates over the nodes in a loop. As for the heap profile, it looks like some of the tools I used to use are no longer shipped with recent versions of Java. I'll have to investigate another way of debugging the current heap state of the server. |
Current Circumstances:
I've integrated the stanford ner functionality into a java service that has tens of millions of calls per day. I deployed in 3 clusters and allocated 10GB of memory per pod.
Issue:
Over a period of about seven days, Pods not available and continued to report OutOfMemory Exceptions.
Calling Code:
Configuration File:
Error Log:
Call method should have no problem. In theory, memory should be cleaned by the GC and no more than 10GB of memory should be consumed. Can help solve the out of memory problem.Thanks a lot.
The text was updated successfully, but these errors were encountered: