-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Java plugin not working in a Che 7 workspace with 2 other plugins on che.openshift.io (not respecting memory limit) #13146
Comments
Unfortunately, it is not possible to apply the workaround by default on che.openshift.io:
|
I tried to increase the workspace RAm to 2G but it then fails with similar error:
|
tried also with 3G which the max allowed per workspace, still same error |
You need to set Theia memory as well: "attributes": {
"plugins": "che-machine-exec-plugin:0.0.1,org.eclipse.che.vscode-redhat.java:0.38.0",
"editor": "org.eclipse.che.editor.theia:1.0.0",
"sidecar.org.eclipse.che.vscode-redhat.java.memory_limit": "1500Mi",
"sidecar.org.eclipse.che.editor.theia.memory_limit": "512Mi"
}, UPDATE using version |
I tried with it, i still have the same error:
|
ah I need to have the 2 memory limits set and to not have the workspace RAM set too high (I switched back to 0.5G and it is working) thanks for your help! |
@apupier |
Eventually this should be done automatically after #11801 get fixed |
@apupier as I understand you was able to run workspace eventually, right?
|
the workspace is starting. if I have the 3 plugins, the workspace is starting but java language server is not working, I have the error [Error - 14:14:02] Connection to server got closed. Server will not be restarted. error |
I was able to access the pod log, seems nothing interesting:
|
@apupier I think this may be a bug. Can you share your |
here is the latest that I tried:
|
OMG, rereading, the alue is wrong: |
it is not working either:
|
The same error? Because we have redhat-developer/rh-che#1371 as well on che.openshift.io |
with the lastly provided attributes config, I had no error at all. Just no completion or hover or anything that seems related to Java. At the bottom it was blocked on "57% Java initialization" (or something like that) In case, I increase the memory limits for the extension, I have the same kind of error pointed by redhat-developer/rh-che#1371 EDIT: realizing the error message is not exactly the same. It is a memory error that i have, not a service limit error. |
also can repro quota issue with a few plugins enabled:
|
@apupier @l0rd @ibuziuk I don't really think this is a bug: if the limits on openshift.io are less than what we need, we can either not support this use case on openshift.io, increase the limits or create a special configuration that runs within those limitations. What I am really saying is: what would be an action that would solve this case? |
I think there are 2 slightly different issues:
|
@tsmaeder you are right for memory limits (there is not much we can do) but for the services limit we are creating more than 15 services and most of them are only for inter-container communications (i.e. we do not really need 15 services) hence there is still room for improvement. @apupier isn't your second issue related to redhat-developer/rh-che#1371? In this case we may fix that when we fix #11018 (@davidfestal task for next sprint) |
I don't think that it is the same issue. In redhat-developer/rh-che#1371 , it is a problem of number of services. here, i'm experiencing memory limit issues which seems to not be respected. |
I tried again with theia:next and the camel extension which is now in official registry and i still hit the same problem. Here is the config attributes:
|
@apupier with the recent changes in the plugin registry, you probably need to update the attributes to the new format of plugin id's: "sidecar.redhat/java.memory_limit": "1500Mi" |
closing as it is working now by setting memory limits manually (even if the availability of the Java Language Server is taking more than 10 minutes) |
Description
When i try to activate the language Support by Java on a Che 7 workspace in che.openshift.io, there is a message stating that java server crashed 5 times and won't be restarted.
Reproduction Steps
--> check in Output -> language SSupport for java, there is
OS and version:
Diagnostics:
The text was updated successfully, but these errors were encountered: