# Upgrading to Java 8 runtime

**URL:** <https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248>\
**Category:** Support\
**Tags:** odk-aggregate\
**Created:** [July 26, 2018, 9:18am UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248 "2018-07-26T09:18:53Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![preethi\_gundavajhyal](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/p/4bbf92/32.png) [@preethi\_gundavajhyal](https://forum.getodk.org/u/preethi_gundavajhyal)\
**Post date:** [July 26, 2018, 9:18am UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248/1 "2018-07-26T09:18:53Z")

</div>

Hi if I migrate to Java 8 as indicated on the Google Cloud Platform , what will happen to my existing submissions

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [July 26, 2018, 2:54pm UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248/2 "2018-07-26T14:54:31Z")

</div>

@preethi_gundavajhyal, welcome to the ODK forum. Please [introduce yourself here](https://forum.getodk.org/t/-/6671) when you get a chance.

The only way you'll be able to upgrade your runtime on GAE is by installing [Aggregate v1.6 or later](https://github.com/opendatakit/aggregate/releases). Your submissions should remain, but I would strongly recommend you follow the [upgrade instructions](https://docs.opendatakit.org/aggregate-upgrade/#general-steps-for-upgrading) which will help you generate a backup.

---

<div class="post-metadata">

**Author:** ![preethi\_gundavajhyal](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/p/4bbf92/32.png) [@preethi\_gundavajhyal](https://forum.getodk.org/u/preethi_gundavajhyal)\
**Post date:** [July 30, 2018, 3:54pm UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248/3 "2018-07-30T15:54:32Z")

</div>

Hello,

While the link you have pointed to is very informative, I am unable to find the version of odk aggregate as afterPropoertiesSet does not appear in the logs. What am I doing wrong. Please help.. My application is crashing terribly and I am unable to fix the errors.

Regards

Preethi

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 1, 2018, 6:45pm UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248/4 "2018-08-01T18:45:46Z")

</div>

We should tease apart the various problems here.

You don't need to upgrade the runtime until Jan 2019, so you still have a few months.

It sounds like the more pressing issue is your application crashing. Can you describe exactly what is happening?

---

<div class="post-metadata">

**Author:** ![preethi\_gundavajhyal](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/p/4bbf92/32.png) [@preethi\_gundavajhyal](https://forum.getodk.org/u/preethi_gundavajhyal)\
**Post date:** [August 2, 2018, 3:37am UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248/5 "2018-08-02T03:37:19Z")

</div>

I keep getting an out of memory error.my survey form consists of 15 questions which consist of among others 5 pictures to be uploaded.when someone with a moto g5 phone or a redmi note uploads [pictures.it](http://pictures.it) is crashing. So I assumed increasing the VM should help. We are hosting aggregate on a google cloud trial period .  
Regards

Preethi

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 2, 2018, 3:46am UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248/6 "2018-08-02T03:46:40Z")

</div>

Are you installing on Google App Engine (GAE) or on Google Compute Engine (GCE)? If you are using GCE, then yes, upgrading to a bigger machine would work, but using GAE would work even better as far as cost and performance.

---

<div class="post-metadata">

**Author:** ![preethi\_gundavajhyal](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/p/4bbf92/32.png) [@preethi\_gundavajhyal](https://forum.getodk.org/u/preethi_gundavajhyal)\
**Post date:** [August 2, 2018, 4:02am UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248/7 "2018-08-02T04:02:46Z")

</div>

I am installing on the Google app Engine (GAE)

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 2, 2018, 5:19am UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248/8 "2018-08-02T05:19:06Z")

</div>

Can you please upload a screenshot of the out of memory error you are getting?

---

<div class="post-metadata">

**Author:** ![preethi\_gundavajhyal](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/p/4bbf92/32.png) [@preethi\_gundavajhyal](https://forum.getodk.org/u/preethi_gundavajhyal)\
**Post date:** [August 2, 2018, 5:41am UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248/9 "2018-08-02T05:41:10Z")

</div>

![image](https://getodk.b-cdn.net/uploads/default/original/2X/f/f3179b2111bba5c1032113437d0a0264514952d9.png)

 ![image](https://getodk.b-cdn.net/uploads/default/original/2X/c/c7eb714bc916f305f52d0328a48e1b5883fc1963.png)

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 2, 2018, 7:16pm UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248/10 "2018-08-02T19:16:39Z")

</div>

Thanks, that helps. Here's what I think we should do. We need to figure out what version of Aggregate you are using, try to upgrade it, and when we do that, increase the size of the machine. Can you please add [yanokwa@nafundi.com](mailto:yanokwa@nafundi.com) as an owner (use the Google App Engine console, not Aggregate) to do that.

I don't know how big your images are, but you should also consider scaling them down on the device. [https://docs.opendatakit.org/form-question-types/#scaling-down-images](https://docs.opendatakit.org/form-question-types/#scaling-down-images) has instructions.

---

<div class="post-metadata">

**Author:** ![preethi\_gundavajhyal](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/p/4bbf92/32.png) [@preethi\_gundavajhyal](https://forum.getodk.org/u/preethi_gundavajhyal)\
**Post date:** [August 3, 2018, 6:24am UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248/11 "2018-08-03T06:24:53Z")

</div>

![image](https://getodk.b-cdn.net/uploads/default/original/2X/5/535930acfe33ca5937044c1f51ad2ad06d7b3e2d.png)

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 3, 2018, 6:28am UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248/12 "2018-08-03T06:28:54Z")

</div>

Odd. Try [yanokwa@gmail.com](mailto:yanokwa@gmail.com) and see if that works better.

---

<div class="post-metadata">

**Author:** ![yanokwa](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/yanokwa/32/1695_2.png) [@yanokwa](https://forum.getodk.org/u/yanokwa)\
**Post date:** [August 6, 2018, 5:14pm UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248/13 "2018-08-06T17:14:29Z")

</div>

I've had a chance to look at your server. You are on ODK Aggregate 1.4.15 and what I'd recommend is you upgrade to the latest version of ODK Aggregate (v1.6.0) at [https://github.com/opendatakit/aggregate/releases/latest](https://github.com/opendatakit/aggregate/releases/latest).

During the upgrade, [increase your web server](https://docs.opendatakit.org/aggregate-boost-performance/#web-server-size) size. I'd try F4/B4 and see if that works better. If it doesn't reduce the errors, then try F4\_1G/B4\_1G.

I'd also encourage you to consider adjusting your form to [resizing images](https://docs.opendatakit.org/form-question-types/#scaling-down-images) so they aren't so big.

---

<div class="post-metadata">

**Author:** ![preethi\_gundavajhyal](https://getodk.b-cdn.net/letter_avatar_proxy/v4/letter/p/4bbf92/32.png) [@preethi\_gundavajhyal](https://forum.getodk.org/u/preethi_gundavajhyal)\
**Post date:** [August 7, 2018, 1:26am UTC](https://forum.getodk.org/t/upgrading-to-java-8-runtime/14248/14 "2018-08-07T01:26:55Z")

</div>

Thank you so much.I had tried directly upgrading to 1.6.I kept getting permission denied error..  
Regards

Preethi
