# Disable a View Temporarily in Perspective

**URL:** <https://forum.inductiveautomation.com/t/disable-a-view-temporarily-in-perspective/60825>\
**Category:** General Discussion\
**Tags:** perspective\
**Created:** [June 16, 2022, 10:41am UTC](https://forum.inductiveautomation.com/t/disable-a-view-temporarily-in-perspective/60825 "2022-06-16T10:41:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahawes](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ahawes/32/36337_2.png) [@ahawes](https://forum.inductiveautomation.com/u/ahawes)\
**Post date:** [June 16, 2022, 10:41am UTC](https://forum.inductiveautomation.com/t/disable-a-view-temporarily-in-perspective/60825/1 "2022-06-16T10:41:42Z")

</div>

Good morning Team,

I am wondering if there is a way to disable a view in order to see if my design is causing spikes in memory/cpu usage. I am pretty sure they are but wanted to confirm.

The only way I can think to do this is to export the page and keep as a copy. Then delete the page from the project and can later add it back in.

Thoughts?

Andrew

---

<div class="post-metadata">

**Author:** ![djs](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@djs](https://forum.inductiveautomation.com/u/djs)\
**Post date:** [June 16, 2022, 12:08pm UTC](https://forum.inductiveautomation.com/t/disable-a-view-temporarily-in-perspective/60825/2 "2022-06-16T12:08:06Z")

</div>

Maybe you could set the root container’s `visible` prop to false?

---

<div class="post-metadata">

**Author:** ![ahawes](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ahawes/32/36337_2.png) [@ahawes](https://forum.inductiveautomation.com/u/ahawes)\
**Post date:** [June 16, 2022, 1:35pm UTC](https://forum.inductiveautomation.com/t/disable-a-view-temporarily-in-perspective/60825/3 "2022-06-16T13:35:34Z")

</div>

Is there a way to determine what is utilizing the memory and cpu in my project/gateway?

My memory is going from around 1200 to 2600 swing every 15 seconds or so.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/2/02baf78f4dfe6ff1f32f95be60bef11e08c17ade.png)

---

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [June 16, 2022, 1:53pm UTC](https://forum.inductiveautomation.com/t/disable-a-view-temporarily-in-perspective/60825/4 "2022-06-16T13:53:22Z")

</div>

That wont do anything for performance.

No idea what will help you pin the problem down tho, its usualy the bindings/scripts

---

<div class="post-metadata">

**Author:** ![djs](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@djs](https://forum.inductiveautomation.com/u/djs)\
**Post date:** [June 16, 2022, 2:02pm UTC](https://forum.inductiveautomation.com/t/disable-a-view-temporarily-in-perspective/60825/5 "2022-06-16T14:02:28Z")

</div>

Memory going up and down is somewhat normal because of how Java does garbage collection. The graph should look kind of like a sawtooth.

> [@Memory usage and garbage collector](https://forum.inductiveautomation.com/t/memory-usage-and-garbage-collector/35170):
>
> Hi, We are checking the memory usage for a few days, the memory grows up to 3.8 GB and then goes down. The maximum memory is set to 4GB. Is the garbage collector which reduces the memory? Why dows the memory go down at 3.8 GB? Can I set the time when garbage collector works?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 16, 2022, 5:26pm UTC](https://forum.inductiveautomation.com/t/disable-a-view-temporarily-in-perspective/60825/6 "2022-06-16T17:26:46Z")

</div>

You should probably contact support. That doesn’t look like a healthy system.

---

<div class="post-metadata">

**Author:** ![ahawes](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ahawes/32/36337_2.png) [@ahawes](https://forum.inductiveautomation.com/u/ahawes)\
**Post date:** [June 20, 2022, 10:32am UTC](https://forum.inductiveautomation.com/t/disable-a-view-temporarily-in-perspective/60825/7 "2022-06-20T10:32:01Z")

</div>

> [@Memory usage and garbage collector](https://forum.inductiveautomation.com/t/memory-usage-and-garbage-collector/35170/1):
>
> y usage for a few days, the memory grows up to 3.8 GB and t

Is there a way to determine what is polling or using the resources. I have looked in the logs and diagnostics but nothing definitive. I believe it is in my queries and polling.

---

<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 20, 2022, 11:20am UTC](https://forum.inductiveautomation.com/t/disable-a-view-temporarily-in-perspective/60825/8 "2022-06-20T11:20:39Z")

</div>

Java is always rolling through its available memory. Every temporary class instance created as java runs will be discarded and then have to be collected. There’s so much of that going on that the unusual is often lost in the crowd. Snapshots of memory usage or histograms can help (jhat, flight recorder, etc).

A sawtooth is utterly normal. Spiky charts without known spiky loads, not so much.
