Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Fix Server Performance Issues #703

Open
syd711 opened this issue Jan 8, 2025 · 47 comments
Open

[Bug] Fix Server Performance Issues #703

syd711 opened this issue Jan 8, 2025 · 47 comments

Comments

@syd711
Copy link
Owner

syd711 commented Jan 8, 2025

Game fetch for emulator 1 took 8137ms / 1173 games / 6ms avg.

ROM validation took 26344ms.

07-01 06:10:44.217 INFO [ALTSound Loader]d.m.v.s.a.AltSoundService - Loading of 129 ALTSounds finished, took 14608ms.
07-01 06:10:46.728 INFO [PUP Pack Scanner]d.m.v.s.p.PupPacksService - Finished PUP pack scan, found 278 packs (17103ms)
07-01 06:10:46.908 INFO [main]d.m.v.s.g.GameService - Game fetch for emulator -1 took 16560ms / 1173 games / 14ms avg.

Started VPinStudioServer in 46.928 seconds (JVM running for 48.579)

@syd711 syd711 self-assigned this Jan 8, 2025
@spaceangel1970
Copy link

Just wondered if there has been any development with this issue..
cheers

@syd711
Copy link
Owner Author

syd711 commented Jan 26, 2025

Not yet. With the 3.12.4 a major problem with the general loading of tables has been fixed and we often switch to other tickets when we are in the mood for them.
I get that this one is annoying and will prioritize this.

@spaceangel1970
Copy link

spaceangel1970 commented Jan 26, 2025 via email

@syd711
Copy link
Owner Author

syd711 commented Feb 2, 2025

@spaceangel1970
The 3.12.5 release should bring improvements regarding the speed of the server start.
Could you re-attach your vpin-studio-server.log here?

This would give me some more insights how much better the performance is now.
I'm not sure if the given changes are sufficient for general table reload.

@spaceangel1970
Copy link

spaceangel1970 commented Feb 2, 2025 via email

@syd711
Copy link
Owner Author

syd711 commented Feb 3, 2025

Sorry, the attachment as email doesn't seem to work. Can you attach it on the issue directly?

Yes, the recent changes mostly improve the startup speed, not the table (re)load speed.
That's why I leave this ticket open and want to continue there.

Another question regarding this: In the validation settings, are the PUP Pack and ALTSound validators enabled? If that's the case, please disable them.

Thank you for your help here!

@spaceangel1970
Copy link

vpin-studio-logs.zip

Attached log files...

@spaceangel1970
Copy link

spaceangel1970 commented Feb 3, 2025 via email

@syd711
Copy link
Owner Author

syd711 commented Feb 4, 2025

Some stats:

  • Loading of 129 ALTSounds finished, took 7842ms.
  • Finished PUP pack scan, found 278 packs (10708ms)
  • Game fetch for emulator -1 took 8757ms / 1180 games / 7ms avg.
  • Started VPinStudioServer in 37.937 seconds (JVM running for 39.41)

The initial startup time has been reduced and also the PUP pack and ALT sound detection.
The general loading time of all tables went down to 7ms.

I think the main problem is that it still takes ~9 seconds to load all tables, right?
So a complete refresh like it is done right now can be annoying.
I'll see if I can squeeze out more.

@spaceangel1970
Copy link

spaceangel1970 commented Feb 4, 2025 via email

@syd711
Copy link
Owner Author

syd711 commented Feb 5, 2025

Not remotely? You get no connection? You use a macOS client?

@spaceangel1970
Copy link

spaceangel1970 commented Feb 5, 2025 via email

@syd711
Copy link
Owner Author

syd711 commented Feb 5, 2025

It does indeed wasn't aware of this.
I'll take a look.

@syd711
Copy link
Owner Author

syd711 commented Feb 5, 2025

I could reproduce this.
The issue should be fixed with the next release.

@spaceangel1970
Copy link

spaceangel1970 commented Feb 7, 2025

Sorry to report the new update did not fix my issue, i have attached logs for your reference.
Cheers.

vpin-studio-logs.zip

@syd711
Copy link
Owner Author

syd711 commented Feb 7, 2025

Mmh, sorry to hear that. I tried remote connect but only have a Win laptop on my hand.
The 3.12.7 patch I deployed today should provide more logging to tackle this problem.
The main issue is, that there seems to be one request to the server that block everything and because it blocks, the actual call is not logged 'cos it never finishes.

I will also ask another developer of us who owns a mac if he can reproduce this.

@spaceangel1970
Copy link

spaceangel1970 commented Feb 7, 2025 via email

@gonzonia
Copy link
Collaborator

gonzonia commented Feb 7, 2025

@spaceangel1970 I'd like to look into this. I want to make sure I have the details correct.

Server/Cabinet
Windows 11
Vpin-Studio version?

Remote Laptop Client
Mac OS?
Vpin-Studio version?

Thanks.

@spaceangel1970
Copy link

spaceangel1970 commented Feb 7, 2025 via email

@spaceangel1970
Copy link

I have updated to Version 3.12.7 and attached the log files.

vpin-studio-logs.zip

@gonzonia
Copy link
Collaborator

gonzonia commented Feb 7, 2025

Can you upload the log from the client too? It should be in the file where the app was installed.
I see an error in the ui-logs but that's from Feb. 1 and 3.12.6

@spaceangel1970
Copy link

spaceangel1970 commented Feb 8, 2025 via email

@gonzonia
Copy link
Collaborator

gonzonia commented Feb 8, 2025

Unfortunately, it didn't come through with the email. Please upload it to Github.

@spaceangel1970
Copy link

spaceangel1970 commented Feb 8, 2025 via email

@spaceangel1970
Copy link

resent log files attached

VPin-Studio-logs.zip

@syd711
Copy link
Owner Author

syd711 commented Feb 8, 2025

Sorry for the confusion guys! I catched a cold and was a bit under the weather yesterday, mixing up this ticket with another one.

@gonzonia I'll ping you about the actual issue I wanted to ask your help for.
@spaceangel1970 I'll continue to look into this.

@spaceangel1970
Copy link

spaceangel1970 commented Feb 8, 2025 via email

@syd711
Copy link
Owner Author

syd711 commented Feb 9, 2025

So to narrow down what is broken exactly I created a new Client where the Table Data Dialog does not load all data.
This way, I can pin down what requests might possible the cause for the Studio client to stall. I hope you have the patience for that ;)

You can download

https://www.dropbox.com/scl/fi/z4e0w49tn4w9wv759wlqu/VPin-Studio.zip?rlkey=usxyqpv1yjpznjuhgoiknfi2s&st=qylj07ie&dl=1

and replace the existing VPin-Studio.exe with it.
I assume the Table Dialog will open the from the remote client, but some tabs will be missing.

This test client is compatible to the latest release, so you really only have to exchange this file on your remote laptop, no changes on the cabinet required.

@spaceangel1970
Copy link

spaceangel1970 commented Feb 9, 2025 via email

@spaceangel1970
Copy link

Please find attached log files from cab and client i didnt know which one was required.

VPin-Studio-Cab.zip
VPin-Studio-Client.zip

@syd711
Copy link
Owner Author

syd711 commented Feb 10, 2025

@spaceangel1970
Copy link

spaceangel1970 commented Feb 10, 2025 via email

@spaceangel1970
Copy link

Please find attached Cab and Client logs for the latest Debug attempt.
Cheers.

VPin-Studio-cab.zip
VPin-Studio-client.zip

@syd711
Copy link
Owner Author

syd711 commented Feb 11, 2025

Ok, no errors in the log. But did the table data dialog open now? Is the client still crashing?

@spaceangel1970
Copy link

spaceangel1970 commented Feb 11, 2025 via email

@spaceangel1970
Copy link

spaceangel1970 commented Feb 11, 2025 via email

@syd711
Copy link
Owner Author

syd711 commented Feb 11, 2025

Ok so, the crashing is caused by one of these 4x tabs:

  • Screens Tab
  • Score Data Tab
  • Auto Renaming Panel
  • PinVOL Settings Tab

I have created a version now where only the PinVOL tab is disabled. For some reason I assume that's the "bad guy".

https://www.dropbox.com/scl/fi/qjnk0ojkbc08xvsxkp01o/VPin-Studio.zip?rlkey=u1uu3ddt2zkfnjyuj0wf5h035&st=4zsyyjzr&dl=1

Please let me know if the version crashes or not.
And thank you for your patience and help here!

@spaceangel1970
Copy link

spaceangel1970 commented Feb 11, 2025 via email

@spaceangel1970
Copy link

That worked no crashes, table data dialog opened everyime.

@syd711
Copy link
Owner Author

syd711 commented Feb 12, 2025

Alright, so we are getting close.

Here is the "regular" version now again:
https://www.dropbox.com/scl/fi/gmjqapp2swioarzo7v2rk/VPin-Studio.zip?rlkey=vd7gou2g3fiqrzsvrlci72eq0&st=q2vy9dt6&dl=1

If the issue wasn't fixed by accident, the dialog should block/crash again.
I assume the issue is something inside the configuration files of PinVOL which is not handled properly by the Studio.

Could you attach all PinVol****.ini files located in the resources folder of VPin Studio server here? Should be 3x files.

@spaceangel1970
Copy link

Studio is crashing again and not loading Table Manager, The PinVol files are attached from the cabinet.
There are no PinVol.ini files on the client so i presume these are the ones.

PinVol-Cabinet.zip

@syd711
Copy link
Owner Author

syd711 commented Feb 12, 2025

Thanks, now that I know the root cause, I hope to deliver a patch soon.

@spaceangel1970
Copy link

spaceangel1970 commented Feb 12, 2025 via email

@syd711
Copy link
Owner Author

syd711 commented Feb 12, 2025

I found the cause for the crash.
The PinVolTables.ini file is 300MB large. I think I have messed up the file and need to re-visit how this can happen.
In the meantime, just delete the PinVolTables.ini.

I'm sorry having messed up your config there. The file has ~500.000 entries there, so simply deleting it is the best way to go.
I'll provide a fix with the next version, so that this can't happen again.

@spaceangel1970
Copy link

spaceangel1970 commented Feb 12, 2025 via email

@spaceangel1970
Copy link

spaceangel1970 commented Feb 12, 2025 via email

@syd711
Copy link
Owner Author

syd711 commented Feb 12, 2025

Thanks for your patience here again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants