# Program for a museum using video and sound library

**URL:** https://discourse.processing.org/t/program-for-a-museum-using-video-and-sound-library/42406
**Category:** Libraries
**Tags:** homework, contributions
**Created:** [July 12, 2023, 9:43pm UTC](https://discourse.processing.org/t/program-for-a-museum-using-video-and-sound-library/42406 "2023-07-12T21:43:19Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)
#### Post date: [July 13, 2023, 10:43am UTC](https://discourse.processing.org/t/program-for-a-museum-using-video-and-sound-library/42406/5 "2023-07-13T10:43:55Z")

</div>

Hello @rociodp,

Try VisualVM:

> [@Loading a 100MB PNG and draw it on the canvas but it eats 1GB of RAM frowning](https://discourse.processing.org/t/loading-a-100mb-png-and-draw-it-on-the-canvas-but-it-eats-1gb-of-ram/37791/3):
>
> Hello, There are tools that you can use to monitor memory usage such as VisualVM: [https://visualvm.github.io/](https://visualvm.github.io/) I found this Java.lang.Runtime class useful to monitor memory usage: I created a couple of images in different formats (JPG and PNG) that were 15000x7000 in image size in pixels which is not the same as image size of the file. The image size of the file is in the comments in the code below and here: Results: The size in memory is the same and it make…

Try to determine when the memory increases.  
There is a learning curve to using this but worthwhile.

This is a homework question in a public forum so be mindful of what you are posting and sharing:  
[https://discourse.processing.org/faq#homework](https://discourse.processing.org/faq#homework)

Try to work out the memory problems separately from you code with an [MCVE](https://stackoverflow.com/help/minimal-reproducible-example):

> [@Guidelines—Asking Questions](https://discourse.processing.org/t/guidelines-asking-questions/2147):
>
> Summary (TL;DR) Ask complete questions to get better answers! Be specific. For example: I want to load an image. I tried using createImg() , and I expected the image to be on canvas, but what happened instead was the image showing up below the canvas. Isolate your problem and work in small steps. Share only the code directly related to your problem if it is part of a bigger project, and if something isn’t working, try the smallest code that could do the thing you want. Can we run your code to …

Your posted code had a missing bracket.

`:)`

---

_[View the full topic](https://discourse.processing.org/t/program-for-a-museum-using-video-and-sound-library/42406)._
