Hi Andris,

You're welcome!

In our testing we found that Oracle Java 8 was more efficient compared to
OpenJDK. I would suggest switching the JVM. Actually, as of 5.3.x+, we
dropped support of Java 6, the minimum is 7, but we actually recommend 8,
so it would be best to upgrade the JVM anyway.

RE: the heap size. You can do this by adding this to the system.properties
file
<https://help.ubnt.com/hc/en-us/articles/205202580-UniFi-system-properties-File-Explanation>
and restarting the controller service:

unifi.xmx=2048
unifi.xms=2048

Just make sure not to have any characters after each line, otherwise they
will be ignored.

Cheers,
Mike

On 7 February 2017 at 13:58, Andris Bjornson <and...@everylayer.com> wrote:

> Thanks for the quick response Mike - looking forward to 5.4.11.  We'll
> upgrade to that once it's out!
>
> Here's the info about what we're running on our t2.medium AWS instance
>
>
>> Ubuntu 14.04 w/ Linux 3.13.0-107-generic #154-Ubuntu SMP Tue Dec 20
>> 09:57:27 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
>>
>> From the output of ps, I can see that it's running Java
>> from /usr/lib/jvm/java-7-openjdk-amd64, which seems to be:
>>
>> ubuntu@hs2:~$ /usr/lib/jvm/java-7-openjdk-amd64/bin/java -version
>> java version "1.7.0_121"
>> OpenJDK Runtime Environment (IcedTea 2.6.8) (7u121-2.6.8-1ubuntu0.14.04.1)
>> OpenJDK 64-Bit Server VM (build 24.121-b00, mixed mode)
>
>
>
> Do you think it would make a difference to run oracle java?
>
> Finally, we're going to increase the java heap size from the default 1GB
> to 2GB via JVM_MAX_HEAP_SIZE.
>
>
> Also - I've noted that the t2.medium instance type is burstable...meaning
> when we hit this high CPU problem, we exhaust our Amazon CPU credits.
> We'll move this to a non-burstable instance type and see if when not
> limited by CPU credits the machine is able to recover from the high cpu.
>
>
>
>
>
> _______________________________________________
> Ubnt_users mailing list
> Ubnt_users@wispa.org
> http://lists.wispa.org/mailman/listinfo/ubnt_users
>
>


-- 
Mike Dudgeon
UniFi Team - Wireless, Routing & Switching <https://www.ubnt.com/unifi>
[image: Ubiquiti Networks, Inc] <http://www.ubnt.com>
_______________________________________________
Ubnt_users mailing list
Ubnt_users@wispa.org
http://lists.wispa.org/mailman/listinfo/ubnt_users

Reply via email to