-
Notifications
You must be signed in to change notification settings - Fork 626
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
[Bug] TheHive 4.0 Slow response for some calls #1465
Comments
Hi @crackytsi! I'm curious about how did you manage to migrate 9000 cases so fast. Did you change some special configuration? I've been running the migration since 4.0.0 was released and "only" 800 cases and 30K alerts have been migrated so far (and every alert it's taking 20 seconds now) |
@mamoedo : No, its just the number of elements. It seems to get slow if you have a large number of objects. In my Demo-Data I just had 9000 Cases and 5000 Alerts. And my Cases have arround 15 Observables in average. I don't have a good clue. And my system should be quite strong. I can recommend to establish browser connection to TheHive as this costs a lot of additional performance. |
@To-om can you take a look on this and maybe even fix this with 4.0.1? |
This issue has been fixed with #1731, included in release 4.1.0. |
Bug
Work Environment
Problem Description
I installed TheHive 4.0 and migrated arround 9000 Cases into the system.
After that, the performance is on a 8 core system still very bad.
There are 2 major issues I found:
Downloading the cases page takes arround 12 seconds (e.g. if you browse to a new page)
Interestingly, the application.log tells generation times, that are much faster:
2020-08-06 02:44:50,809 [INFO] from org.thp.scalligraph.AccessLogFilter in application-akka.actor.default-dispatcher-1973 [000003db|] 192.168.97.10 POST /api/v1/query?name=cases took 40ms and returned 200
Status page and stream take very long to respond:
2020-08-06 00:48:13,204 [INFO] from org.thp.scalligraph.AccessLogFilter in application-akka.actor.default-dispatcher-1953 [00000296|] 192.168.97.10 GET /api/stream/bayUM1q8DjeVcqrmptfW took 60019ms and returned 200 2 bytes
Alerts take long to respond:
2020-08-06 05:07:18,108 [INFO] from org.thp.scalligraph.AccessLogFilter in application-akka.actor.default-dispatcher-1951 [0000454a|] 192.168.97.10 POST /api/v1/query?name=unread-alert-count took 4073ms and returned 200 4 bytes
Some more logs:
Possible Solutions
I don't know
The text was updated successfully, but these errors were encountered: