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

Gateway endlessly spams about free space of runtime directory #4006

Open
1000TurquoisePogs opened this issue Feb 24, 2025 · 1 comment
Open
Assignees
Labels
bug Verified defect in functionality Priority: High size/XS

Comments

@1000TurquoisePogs
Copy link
Member

Since Zowe 3.0, multiple companies including mine have ran Zowe only to find this happen:

2025-02-24 18:08:11.844 <ZWEAGW1:DiscoveryClient-InstanceInfoReplicator-%d:67568771> me WARN  ((o.s.b.a.s.DiskSpaceHealthIndicator)) Free disk space at path '/runtime/zowe-release-3.1.0/components/gateway/.' below threshold. Available: 8249344 bytes (threshold: 10485760B)
2025-02-24 18:08:12.845 <ZWEAGW1:DiscoveryClient-InstanceInfoReplicator-%d:67568771> me WARN  ((o.s.b.a.s.DiskSpaceHealthIndicator)) Free disk space at path '/runtime/components/gateway/.' below threshold. Available: 8249344 bytes (threshold: 10485760B)

That is, the gateway server spams the log every second that your runtime directory is perceived to be below 10MB free.
There's several issues with this, but...

  1. It shouldn't care, because it shouldn't be writing to the runtime directory
  2. It's not even true. z/OS surprisingly does not implement df properly, or whatever it's underlying API is, and it doesn't really show free space at all. It might be showing free space of CURRENT EXTENT, but it's easy to see free space INCREASE by copying a big file in.

This behavior seems to be the default behavior of https://docs.spring.io/spring-boot/api/java/org/springframework/boot/actuate/system/DiskSpaceHealthIndicator.html wherever it is being used.
Not sure why spring does this.

It's suggested elsewhere that this behavior can either be disabled broadly with management.health.diskspace.enabled=false or moved to somewhere beneficial like the workspace with management.health.diskspace.path=/new/path/
But, considering that it spams each second, I don't think pointing it at a different directory is 'good', disabling it would be better.

@1000TurquoisePogs 1000TurquoisePogs added bug Verified defect in functionality new New issue that has not been worked on yet labels Feb 24, 2025
@pablocarle
Copy link
Contributor

I'm ok with disabling it. Also by reading about the topic, I remember that by default upon a JVM crash, the VMs are trying to write the dumps to the runtime directory by default. I don't think this is correct and it needs to be changed, but just mentioning this is currently happening as something that writes to runtime directory

@EvaJavornicka EvaJavornicka added Priority: High size/XS and removed new New issue that has not been worked on yet labels Feb 26, 2025
@EvaJavornicka EvaJavornicka moved this from New to Unplanned Bugs in API Mediation Layer Backlog Management Feb 26, 2025
@hrishikesh-nalawade hrishikesh-nalawade moved this from Unplanned Bugs to In Progress in API Mediation Layer Backlog Management Mar 5, 2025
@hrishikesh-nalawade hrishikesh-nalawade moved this from In Progress to Unplanned Bugs in API Mediation Layer Backlog Management Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified defect in functionality Priority: High size/XS
Projects
Status: Unplanned Bugs
Development

No branches or pull requests

4 participants