# Error loading resources: Project fetch failed: Error: Request failed with status code 500

**URL:** <https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026>\
**Category:** Ignition\
**Created:** [June 14, 2023, 3:00pm UTC](https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026 "2023-06-14T15:00:20Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbartsch](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jbartsch](https://forum.inductiveautomation.com/u/jbartsch)\
**Post date:** [June 14, 2023, 3:00pm UTC](https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026/1 "2023-06-14T15:00:20Z")

</div>

New today we are having a problem with a project that is erroring when we try to load the page. We are seeing this error on multiple clients. They designer loads the project without any issues and the gateway logger has warning "HttpChannel" with a Message showing the project path. The details are showing "java.lang.OutOfMemoryError: Java heap space" but I haven't found a method to recover from this. Any guidance would be greatly apprenticed.

---

<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 14, 2023, 3:23pm UTC](https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026/2 "2023-06-14T15:23:45Z")

</div>

> [@jbartsch](#):
>
> "java.lang.OutOfMemoryError: Java heap space"

Something about that page is overloading your gateway. Or your gateway is on the edge performance-wise, and that page pushes it over.

Give your gateway more memory (in `ignition.conf`), to start.

You may want to study how much memory various parts of Ignition are using, and/or pursue a frontend/backend split configuration.

---

<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 14, 2023, 3:25pm UTC](https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026/3 "2023-06-14T15:25:50Z")

</div>

Wait, is this Vision? ("page" typically means Perspective.)

You may need to set a higher max memory allowed in the project properties. Also look at your client launcher configuration to see if there is a max memory override that is preventing the project from getting the local memory it needs.

---

<div class="post-metadata">

**Author:** ![jbartsch](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jbartsch](https://forum.inductiveautomation.com/u/jbartsch)\
**Post date:** [June 14, 2023, 3:32pm UTC](https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026/4 "2023-06-14T15:32:36Z")

</div>

This is Perspective project.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/e/6ed0798338618e243e445d254c3d13bd581ccc60.jpeg)

---

<div class="post-metadata">

**Author:** ![jbartsch](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jbartsch](https://forum.inductiveautomation.com/u/jbartsch)\
**Post date:** [June 14, 2023, 3:36pm UTC](https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026/5 "2023-06-14T15:36:11Z")

</div>

I am working on getting access to the server and investigate the igition.conf file but haven't gotten that far yet. The application is a frontend project. The configuration has already been split into Frontend/Backend. We have other projects on this gateway and they are much smaller and work fine.

---

<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 14, 2023, 3:37pm UTC](https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026/6 "2023-06-14T15:37:38Z")

</div>

Everything Perspective does runs on the gateway. That error message can only come from the gateway. **Something** about that project is bogging down your frontend server.

---

<div class="post-metadata">

**Author:** ![jbartsch](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jbartsch](https://forum.inductiveautomation.com/u/jbartsch)\
**Post date:** [June 14, 2023, 3:41pm UTC](https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026/7 "2023-06-14T15:41:50Z")

</div>

I agree but haven't found it the source yet. I created a copy, deleted the most recent modifications and no luck... working on recovering a backup now..

---

<div class="post-metadata">

**Author:** ![jbartsch](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jbartsch](https://forum.inductiveautomation.com/u/jbartsch)\
**Post date:** [June 14, 2023, 4:08pm UTC](https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026/8 "2023-06-14T16:08:25Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/7/d7602f94ad8b30ef74b4990c32a672abc82a1b0c.png)  
Couldn't recover the backup project.

I forced a restart on the gateway and appears have solved the issue. Bit puzzling but wondering if there was power-loss issue on the network. Noticed multiple connection drops to GAN and databases.

---

<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 14, 2023, 5:18pm UTC](https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026/9 "2023-06-14T17:18:01Z")

</div>

Consider monitoring your gateway's memory usage on a regular basis--you might have something producing a slow memory leak.

---

<div class="post-metadata">

**Author:** ![jbartsch](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jbartsch](https://forum.inductiveautomation.com/u/jbartsch)\
**Post date:** [June 14, 2023, 5:25pm UTC](https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026/10 "2023-06-14T17:25:31Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/6/b667364286d102c61e40db025ff76eed95a30172.png)

Thanks for the tip. After the restarted at noon and memory trend dropped by 50%.

I will keep an eye on it.

---

<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 14, 2023, 5:36pm UTC](https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026/11 "2023-06-14T17:36:31Z")

</div>

How many Perspective clients do you normally support? (I would think 2GB is a pretty wimpy allocation for Perspective.)

---

<div class="post-metadata">

**Author:** ![jbartsch](https://avatars.discourse-cdn.com/v4/letter/j/a183cd/32.png) [@jbartsch](https://forum.inductiveautomation.com/u/jbartsch)\
**Post date:** [June 14, 2023, 5:40pm UTC](https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026/12 "2023-06-14T17:40:53Z")

</div>

Typically 2~6 depending on users logging in. I like where you are going with this. I will request server admin to increase the memory in the "ignition.conf" file.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [June 14, 2023, 5:44pm UTC](https://forum.inductiveautomation.com/t/error-loading-resources-project-fetch-failed-error-request-failed-with-status-code-500/75026/13 "2023-06-14T17:44:33Z")

</div>

In my experience 4GB seems the minimum to run 1-2 simple perspective clients ok. I would ask for at least 8GB if its available.
