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

mqweb can't start after OOM murder #583

Open
dariodsa opened this issue Oct 1, 2024 · 3 comments
Open

mqweb can't start after OOM murder #583

dariodsa opened this issue Oct 1, 2024 · 3 comments

Comments

@dariodsa
Copy link

dariodsa commented Oct 1, 2024

Web console is the a highest consumer of a memory inside of a container so in the case of MQ pod being close to the memory limit, OOM will kill the web console process, and that is ok, it is better web console than actual MQ process. But in that case, we can't recover gui console without having a down time (stop container, start container).

Example

kill -9 $(pgrep java)  # OOM kills the gui process
strmqweb # won't start MQ console

There is a failure loading the MQWebKeyStore keystore. If an SSL configuration references the MQWebKeyStore keystore, then the SSL configuration will fail to initialize.

The reason why is quite simply, runmqserver is creating a wildcard.p12 and it is generating a keystore with some password which is saved in the environment variable of runmqserver. If I start strmqweb from the bash, mqweb can't "reach" the env variables set in the runmqserver (pid 1).
Normally mqweb is being started by the runmqserver (pid 1) and in its ENV variables has password of the keystore, otherwise it will not bind to port because it can't open the keystore.
This is the only way how we managed to manually start web gui without restarting the container, manually set env variables from the runmqserver and then strmqweb.

kill -9 $(pgrep java)
export AMQ_ADDITIONAL_JSON_LOG=1
export AMQ_WEBTRUSTSTOREREF=MQWebTrustStore
export AMQ_WEBKEYSTOREPW=************
export AMQ_DIAGNOSTIC_MSG_SEVERITY=1
export AMQ_WEBKEYSTORE=wildcard.p12
strmqweb # will start MQ console

Maybe removing those from ENV variables and setting it in some file which is readable to the strmqweb?

@KNishit92
Copy link

Looking into it

CLIN42 pushed a commit to CLIN42/mq-container that referenced this issue Oct 8, 2024
…essaging#583)

* Modify the deprecated pkcs12.Encode method

* Update Copyright
@vgavinash
Copy link
Contributor

If I am correct you want to know if the environment variables can be rendered via a file for the strmqweb to pick it up.

@dariodsa
Copy link
Author

dariodsa commented Oct 9, 2024 via email

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

No branches or pull requests

3 participants