Skip to content
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] Slow performance with many cases #1721

Closed
cugu opened this issue Dec 22, 2020 · 3 comments
Closed

[Bug] Slow performance with many cases #1721

cugu opened this issue Dec 22, 2020 · 3 comments
Assignees
Labels

Comments

@cugu
Copy link

cugu commented Dec 22, 2020

Work Environment

Question Answer
CPU 16 Cores
RAM 16 GB
Package Type Docker
Tag thehive4:4.0.2-1

Problem Description

We imported about 5000 cases (out of 16000) cases into TheHive 4. The setup is using the Cassanda backend. Loading the main page takes quite long (~10 seconds).

Steps to Reproduce

  1. Import 5000 cases.
  2. Open TheHive.

Complementary information

Just retrieving the case count takes 4-7 seconds:

time curl https://thehive.xxx.com/api/v1/query -s -H "Authorization: Bearer XXX" -H "Content-type: application/json" -d '{"query": [{"_name": "listCase"},{"_name": "count"}]}'
5190
real	0m5.174s
user	0m0.019s
sys	0m0.012s

This is similar to #1584 but related to cases this time.

@cugu cugu added TheHive4 TheHive4 related issues bug labels Dec 22, 2020
@shortstack
Copy link

shortstack commented Feb 24, 2021

having the same issue. 8 cores, 32g. 4k cases, ubuntu 18, cassandra. takes ~10+ seconds to load main page. alerts page is even slower.

@pemontto
Copy link

@nadouani would it be worth having a meta ticket to track all the TH4 performance issues?

#1341
#1465
#1505
#1506
#1584
#1721

@rriclet
Copy link
Contributor

rriclet commented Mar 19, 2021

This issue has been fixed with #1731, included in release 4.1.0.
Feel free to re-open this issue if you still notice slow performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants