Multiple copies of YawCam need Multiple copies of Java?

Questions? Suggestions? Need help? Talk about anything related to Yawcam...
Post Reply
bsisson
Posts: 14
Joined: Mon May 16, 2022 4:51 pm

Multiple copies of YawCam need Multiple copies of Java?

Post by bsisson »

I am running an application that recommends that Yawcam do its USB WebCam streaming.

The problem is that it means multiple copies of JAVA, which is a memory Hog...

Three (3) cameras are using 3x7 Gigs of memory which puts a serious dent in my 32G system.

Is there any way to optimize for multiple copies of YawCam?
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Re: Multiple copies of YawCam need Multiple copies of Java?

Post by malun »

7 GB of memory for a single instance of Yawcam sounds really much...
What java distribution are you using?
What image size are you using for the device?

It is important to note that the memory usage will depend on the image size.

In my tests a single instance for a camera with full HD (1920x1080) resolution running on Java 21 uses around:
450 MB active memory
850 MB committed memory

/malun
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Re: Multiple copies of YawCam need Multiple copies of Java?

Post by malun »

With that said...
As you pointed out, a contributing problem is also that this version of Yawcam don't support multiple devices.
The overhead could be reduced if we don't have to run multiple instances at the same time.

As a teaser, the next (unreleased) version of Yawcam dedicated for surveillance will have support for multiple devices.
yawcam-preview.jpg
yawcam-preview.jpg (165.49 KiB) Viewed 5809 times
What program are you using that needs Yawcam to connect to the USB cameras?

/malun
LGMS
Posts: 1
Joined: Mon Feb 12, 2024 11:54 am

Re: Multiple copies of YawCam need Multiple copies of Java?

Post by LGMS »

ohhhh nice !!
Can you say more about the next version ? (maybe in a dedicated post)
malun
Site Admin
Posts: 1593
Joined: Sun Jan 04, 2004 1:29 pm

Re: Multiple copies of YawCam need Multiple copies of Java?

Post by malun »

I'll post more info soon when the new version is closer to getting ready for a beta-release.
Hopefully some of you will help me test the new version and track down the initial bugs before a real release :D
/malun
Post Reply