# Performance optimization

**URL:** <https://community.zammad.org/t/performance-optimization/685>\
**Category:** Technical assistance\
**Created:** [May 18, 2018, 8:25am UTC](https://community.zammad.org/t/performance-optimization/685 "2018-05-18T08:25:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmanat](https://community.zammad.org/user_avatar/community.zammad.org/schmanat/32/94_2.png) [@schmanat](https://community.zammad.org/u/schmanat)\
**Post date:** [May 18, 2018, 8:25am UTC](https://community.zammad.org/t/performance-optimization/685/1 "2018-05-18T08:25:34Z")

</div>

### Infos:

- Used Zammad version: 2.4
- Used Zammad installation source: (source, package, …) deb
- Operating system: Ubuntu 16.04
- Browser + version: latest versions of: Chrome, Firefox, Edge (17)

### Expected behavior:

- Opening a ticket should take less than 3 seconds.

### Actual behavior:

- We use the latest version of zammad (2.4). Actually we are 15 agents with about 800 tickets. When we open a ticket we have to wait about 3 seconds to see it. The same if we want to edit an user or organisation. Our server is an VM with SSD Storage behind. It runs the lates ubuntu 16.04 LTS with 4 CPU and 8 GB of RAM as described in your [documentation](https://docs.zammad.org/en/latest/prerequisites-hardware.html). The only thing we changed is, that we used apache2 as webserver not nginx.  
Is there any change to optimzie the installation. In the near feature we want to roll it out, than we have about 100 agents, but with this performance … we can’t.

We also run elasticsearch on the same machine. The database ist postgres 9.5

---

<div class="post-metadata">

**Author:** ![dvnkln](https://community.zammad.org/user_avatar/community.zammad.org/dvnkln/32/2736_2.png) [@dvnkln](https://community.zammad.org/u/dvnkln)\
**Post date:** [May 23, 2018, 8:14am UTC](https://community.zammad.org/t/performance-optimization/685/2 "2018-05-23T08:14:02Z")

</div>

Hey @schmanat,

@martini helped out many people on here with the following recommendations.

**1.** RAMDisk  
**2.** More application server processes.

Take a look at this

> [@High Latency , Timeouts, tickets twice](https://community.zammad.org/t/high-latency-timeouts-tickets-twice/476/8):
>
> Hi @pixelflair it seems that you are facing with different issues. 1) 100% cpu time This seems to be the Zammad scheduler -\> this has changed in Zammad 2.4 - the scheduler will use much less cpu time 2) Sporadic delays (e. g. 20 sec.) Per default Zammad starts with one application server process (with max. 30 threats). If you have several concurrent users it may not be enough (http requests will get queued which leads to high latency). Depending on you need you can start more processes (eac…

Hope this helps!

cheers

---

<div class="post-metadata">

**Author:** ![schmanat](https://community.zammad.org/user_avatar/community.zammad.org/schmanat/32/94_2.png) [@schmanat](https://community.zammad.org/u/schmanat)\
**Post date:** [May 24, 2018, 7:41am UTC](https://community.zammad.org/t/performance-optimization/685/3 "2018-05-24T07:41:46Z")

</div>

Hey @svrn-dvnkln

thanks for your replay. I will have a look into your answer and hope it will help. I give feedback as soon as possible.

thanks again.

Greetings

---

<div class="post-metadata">

**Author:** ![schmanat](https://community.zammad.org/user_avatar/community.zammad.org/schmanat/32/94_2.png) [@schmanat](https://community.zammad.org/u/schmanat)\
**Post date:** [May 25, 2018, 6:28am UTC](https://community.zammad.org/t/performance-optimization/685/4 "2018-05-25T06:28:10Z")

</div>

Hi everyone.

After setting the WEBCURRENCY to 4

```
zammad config:set WEB_CONCURRENCY=4
systemctl restart zammad

```

it seems it works faster. Thanks again for your hint.

---

<div class="post-metadata">

**Author:** ![ecomsilio](https://community.zammad.org/user_avatar/community.zammad.org/ecomsilio/32/297_2.png) [@ecomsilio](https://community.zammad.org/u/ecomsilio)\
**Post date:** [May 25, 2018, 8:20am UTC](https://community.zammad.org/t/performance-optimization/685/5 "2018-05-25T08:20:01Z")

</div>

What are the recommendations for the CPUs?

I want to set up a server that only runs Zammad. No other applications.  
I plan to use:

- 4 vCore
- 8 GB Ram
- 160 GB SSD

I can then choose between:

- 4 processor, 1 core
- 2 processor, 2 core
- 1 processor, 4 core

What would you recommend?

Thanks a lot!

![05](https://community.zammad.org/uploads/default/original/1X/4a881bef44ec4827cc2b2abfe959652621b524f4.png)

---

<div class="post-metadata">

**Author:** ![dvnkln](https://community.zammad.org/user_avatar/community.zammad.org/dvnkln/32/2736_2.png) [@dvnkln](https://community.zammad.org/u/dvnkln)\
**Post date:** [May 25, 2018, 10:19am UTC](https://community.zammad.org/t/performance-optimization/685/6 "2018-05-25T10:19:40Z")

</div>

Hey @ecomsilio,

take a look at this, i think that’ll at least get you in the right direction 🙂

[https://docs.zammad.org/en/latest/prerequisites-hardware.html](https://docs.zammad.org/en/latest/prerequisites-hardware.html)

cheers

---

<div class="post-metadata">

**Author:** ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)\
**Post date:** [May 27, 2018, 9:49pm UTC](https://community.zammad.org/t/performance-optimization/685/7 "2018-05-27T21:49:44Z")

</div>

1 processor with 4 cores should be fine

---

<div class="post-metadata">

**Author:** ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)\
**Post date:** [September 24, 2018, 9:49pm UTC](https://community.zammad.org/t/performance-optimization/685/8 "2018-09-24T21:49:47Z")

</div>

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
