# Performance issues on Amazon AWS after only 2 days

**URL:** <https://forum.mautic.org/t/performance-issues-on-amazon-aws-after-only-2-days/6648>\
**Category:** Product Support\
**Created:** [November 23, 2016, 7:24pm UTC](https://forum.mautic.org/t/performance-issues-on-amazon-aws-after-only-2-days/6648 "2016-11-23T19:24:05Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![JHC333](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@JHC333](https://forum.mautic.org/u/JHC333)\
**Post date:** [November 23, 2016, 7:24pm UTC](https://forum.mautic.org/t/performance-issues-on-amazon-aws-after-only-2-days/6648/1 "2016-11-23T19:24:05Z")

</div>

I deployed Mautic to AWS’s free tier (via Bitnami: [https://bitnami.com/stack/mautic](https://bitnami.com/stack/mautic)) two days ago and now I am already experiencing huge performance issues.  
  
  
  
After only 2 days of social monitoring, I have 50,000 leads identified via their Twitter handles. However it takes over a minute (sometimes several minutes) to load every page on Mautic, rendering it pretty unusable, and this is obviously is cause for concern with regard to scaling.  
  
  
  
What would be the cause of this performance bottleneck?  
  
  
  
How might one go about scaling Mautic to prevent this issue?  
  
  
  
What is the maximum number of leads Mautic can handle?

---

<div class="post-metadata">

**Author:** ![JHC333](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@JHC333](https://forum.mautic.org/u/JHC333)\
**Post date:** [November 23, 2016, 7:24pm UTC](https://forum.mautic.org/t/performance-issues-on-amazon-aws-after-only-2-days/6648/2 "2016-11-23T19:24:05Z")

</div>

I deployed Mautic to AWS’s free tier (via Bitnami: [https://bitnami.com/stack/mautic](https://bitnami.com/stack/mautic)) two days ago and now I am already experiencing huge performance issues.

After only 2 days of social monitoring, I have 50,000 leads identified via their Twitter handles. However it takes over a minute (sometimes several minutes) to load every page on Mautic, rendering it pretty unusable, and this is obviously is cause for concern with regard to scaling.

What would be the cause of this performance bottleneck?

How might one go about scaling Mautic to prevent this issue?

What is the maximum number of leads Mautic can handle?

---

<div class="post-metadata">

**Author:** ![JHC333](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@JHC333](https://forum.mautic.org/u/JHC333)\
**Post date:** [November 23, 2016, 7:48pm UTC](https://forum.mautic.org/t/performance-issues-on-amazon-aws-after-only-2-days/6648/3 "2016-11-23T19:48:17Z")

</div>

Here’s the only noteworthy bit in Mautic’s log:

`[2016-11-23 11:10:07] mautic.ERROR: Notice: unserialize(): Error at offset 166 of 273 bytes - in file /opt/bitnami/apps/mautic/htdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Types/ArrayType.php - at line 58 [] []
`

---

<div class="post-metadata">

**Author:** ![JHC333](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@JHC333](https://forum.mautic.org/u/JHC333)\
**Post date:** [November 23, 2016, 8:35pm UTC](https://forum.mautic.org/t/performance-issues-on-amazon-aws-after-only-2-days/6648/4 "2016-11-23T20:35:06Z")

</div>

And here’s a screenshot showing the 32 second load time, seemingly due to problems loading the contacts.

[http://imgur.com/a/Zj2M4](http://imgur.com/a/Zj2M4)

---

<div class="post-metadata">

**Author:** ![ninjoan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ninjoan/32/1005_2.png) [@ninjoan](https://forum.mautic.org/u/ninjoan)\
**Post date:** [November 23, 2016, 11:25pm UTC](https://forum.mautic.org/t/performance-issues-on-amazon-aws-after-only-2-days/6648/5 "2016-11-23T23:25:14Z")

</div>

What is your server hardware

---

<div class="post-metadata">

**Author:** ![JHC333](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@JHC333](https://forum.mautic.org/u/JHC333)\
**Post date:** [November 23, 2016, 11:32pm UTC](https://forum.mautic.org/t/performance-issues-on-amazon-aws-after-only-2-days/6648/6 "2016-11-23T23:32:21Z")

</div>

T2 Micro on AWS EC2.  
[https://aws.amazon.com/ec2/instance-types/](https://aws.amazon.com/ec2/instance-types/)

It’s the default deployment for Mautic on Bitnami.

---

<div class="post-metadata">

**Author:** ![JHC333](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@JHC333](https://forum.mautic.org/u/JHC333)\
**Post date:** [November 24, 2016, 8:18am UTC](https://forum.mautic.org/t/performance-issues-on-amazon-aws-after-only-2-days/6648/7 "2016-11-24T08:18:44Z")

</div>

For now I have simply scaled up the specs on my server, however I wonder whether this is a realistic solution given that I’ve had to increase my server budget by about $100/month after only 2 days of lead growth.

---

<div class="post-metadata">

**Author:** ![imautic](https://avatars.discourse-cdn.com/v4/letter/i/74df32/32.png) [@imautic](https://forum.mautic.org/u/imautic)\
**Post date:** [November 24, 2016, 1:21pm UTC](https://forum.mautic.org/t/performance-issues-on-amazon-aws-after-only-2-days/6648/8 "2016-11-24T13:21:58Z")

</div>

Well, after you switched to a better server config, did the problem go away?

---

<div class="post-metadata">

**Author:** ![JHC333](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@JHC333](https://forum.mautic.org/u/JHC333)\
**Post date:** [November 24, 2016, 8:42pm UTC](https://forum.mautic.org/t/performance-issues-on-amazon-aws-after-only-2-days/6648/9 "2016-11-24T20:42:13Z")

</div>

Yes, but who’s to say that the performance will not degrade after another few days? My intuition tells me that Mautic is not ready for enterprise scale. It should be able to query 50,000 leads just as quickly as 5,000. I’ve run forum software with five or six times that many rows, and never once had to wait 30-60 seconds for a page to load. I think Mautic must be using resources inefficiently.

---

<div class="post-metadata">

**Author:** ![phillip](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@phillip](https://forum.mautic.org/u/phillip)\
**Post date:** [November 30, 2016, 6:38pm UTC](https://forum.mautic.org/t/performance-issues-on-amazon-aws-after-only-2-days/6648/10 "2016-11-30T18:38:18Z")

</div>

I tried Mautic in a micro instance and had to change to a more powerful instance. I found that MySQL kept crashing. However, you shouldn’t have to spend much.
