# Java app is killed on startup

**URL:** <https://community.fly.io/t/java-app-is-killed-on-startup/8379>\
**Category:** Questions / Help\
**Created:** [November 1, 2022, 7:59pm UTC](https://community.fly.io/t/java-app-is-killed-on-startup/8379 "2022-11-01T19:59:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ignoramous](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@ignoramous](https://community.fly.io/u/ignoramous)\
**Post date:** [November 2, 2022, 2:42pm UTC](https://community.fly.io/t/java-app-is-killed-on-startup/8379/3 "2022-11-02T14:42:34Z")

</div>

Hard to tell what’s going on without code, but is it possible that allocated VM resources aren’t enough to run that Java app (also: [1](https://community.fly.io/t/fly-proxy-error-after-oom-server-reboot-and-no-app-activity/4115/2), [2](https://community.fly.io/t/memory-issues/7732/4))? Try scaling up, if you haven’t already, to see if things then run as expected?

```auto
# 1G RAM
fly scale vm memory 1024 -a <app-name>

```

Additionally, you may also want to give existing JVM flags a cursory look.

---

_[View the full topic](https://community.fly.io/t/java-app-is-killed-on-startup/8379)._
