# OpenJDK and Linux

**URL:** <https://forum.inductiveautomation.com/t/openjdk-and-linux/18553>\
**Category:** Ignition\
**Created:** [June 21, 2018, 11:08am UTC](https://forum.inductiveautomation.com/t/openjdk-and-linux/18553 "2018-06-21T11:08:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [June 21, 2018, 11:08am UTC](https://forum.inductiveautomation.com/t/openjdk-and-linux/18553/1 "2018-06-21T11:08:55Z")

</div>

Given that OpenJDK 8 is now the recommended version of Java for Ignition I gave it another try on Ubuntu 16.04 with KDE. It caused just as many problems as when I tried it before, with Java heap space errors and random freezes and crashes. I stuck it for just over a day before I reverted to Oracle Java which doesn’t cause any of these issues.

How have others found OpenJDK on Linux?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 21, 2018, 12:44pm UTC](https://forum.inductiveautomation.com/t/openjdk-and-linux/18553/2 "2018-06-21T12:44:55Z")

</div>

I’ve been running it with no problems for a few weeks, but I force all of my systems to use G1GC. That might be the secret sauce.  
Update: Ubuntu Server 16.04

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 21, 2018, 12:45pm UTC](https://forum.inductiveautomation.com/t/openjdk-and-linux/18553/3 "2018-06-21T12:45:30Z")

</div>

Are you having problems with clients or the gateway?

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [June 21, 2018, 1:15pm UTC](https://forum.inductiveautomation.com/t/openjdk-and-linux/18553/4 "2018-06-21T13:15:55Z")

</div>

Both! The heap space errors were on the client and the designer was freezing. This is currently on Ignition 7.9.4.

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [June 21, 2018, 1:19pm UTC](https://forum.inductiveautomation.com/t/openjdk-and-linux/18553/5 "2018-06-21T13:19:18Z")

</div>

Are you using OpenJDK 9 Phil?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [June 21, 2018, 1:31pm UTC](https://forum.inductiveautomation.com/t/openjdk-and-linux/18553/6 "2018-06-21T13:31:46Z")

</div>

OpenJDK 8. In my laptop, it’s gentoo’s version packaged as ‘icedtea-bin’. If you are using the native client launcher, you can add `jvm-args="-XX:+UseG1GC"` to the command line in your shortcuts.

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [June 21, 2018, 1:43pm UTC](https://forum.inductiveautomation.com/t/openjdk-and-linux/18553/7 "2018-06-21T13:43:12Z")

</div>

I’ll give that a go.
