-
Notifications
You must be signed in to change notification settings - Fork 640
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] (Still) slow loading of list-tags endpoint with 4.1.2 #1914
Comments
@crackytsi can you please share the POST request body for the |
Sure :) Attached some data, if you need more, let me know ;) |
|
If I go as admin to the Platform Status, the section "Data index status" is stuck in "Loading index status..." forever. I'm trying to give as many resources as I can to the Cassandra and ES machines but I'm afraid that it's an implementation issue, because from Kibana the queries are super fast, faster than in TH3. |
Also, uploading task logs takes minutes |
@mamoedo Your index doesn't seem to work. Can you log to TheHive with global admin user and go to |
Or export the platform status report and share it with us. (It doesn't contain any sensitive data) |
The problem is that I can't see anything, it's not loading
|
Done. It finished and it doesn't go faster, in fact I went to the alerts list and 7 tasks were pending without loading anything for minutes :( |
@mamoedo can you increase log level by updating /etc/thehive/logback.xml ( |
Hello @mamoedo We would like to have a call with you to troubleshoot this problem. We need to run the queries directly on the database and profile them. It looks like the index is not used and we need to verify that as we don't reproduce. Are you on discord? chat.thehive-project.org? |
@crackytsi do you have the same behavior as @mamoedo with requests other that the list of tags? |
I did the modification and restarted the application and I think the logs are the same: /etc/thehive/logback.xml
|
By the way, I put the ES index status on green and the performance seems to be the same |
Unfortunately yes. The Problem seems still to be related to the number of elements. list-users take on my system with arround 30 users 800 ms. But e.g. 4000 Alerts or 15.000 Cases should not be a range where TheHive stops working, especially if you compare it to TH3 :-( |
Request Type
Bug
Work Environment
Problem Description
Sorry for popping up this toppic once again :-(
Starting the TheHive page or directly jumping to a case using a link (still) takes several time.
/api/v1/query?name=list-tagsBy analyzing this, the root-cause seems to be related to URL:
On my browser it takes about 16 seconds (sec not ms!) to download the file, but the file-size is only 993 Bytes according to browser developer-console.
Meanwhile TheHive application.log shows:
2021-03-30 06:03:17,902 [INFO] from org.thp.scalligraph.AccessLogFilter in application-akka.actor.default-dispatcher-13 [00000520|355b8639] 10.32.30.10 POST /api/v1/query?name=list-tags took 29ms and returned 200
Screenshot of developer console can be seen at the old case: #1869
I can also see that the load on cassandra is very high, I have a system with 8 cores, much more powerfull than the system on TH 3.4 that handled the same cases.
Possible Solutions
Caching? Indexing of Tags? I don't know :-(
The text was updated successfully, but these errors were encountered: