Skip to content

Commit

Permalink
[supervisor] remove JAVA_TOOL_OPTIONS hack
Browse files Browse the repository at this point in the history
  • Loading branch information
svenefftinge committed Apr 16, 2024
1 parent 0130835 commit 998bec5
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions components/supervisor/pkg/supervisor/supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1028,11 +1028,6 @@ func buildChildProcEnv(cfg *Config, envvars []string, runGP bool) []string {
envs["HOME"] = "/home/gitpod"
envs["USER"] = "gitpod"

// Particular Java optimisation: Java pre v10 did not gauge it's available memory correctly, and needed explicitly setting "-Xmx" for all Hotspot/openJDK VMs
if mem, ok := envs["GITPOD_MEMORY"]; ok {
envs["JAVA_TOOL_OPTIONS"] += fmt.Sprintf(" -Xmx%sm", mem)
}

if _, ok := envs["HISTFILE"]; !ok {
envs["HISTFILE"] = "/workspace/.gitpod/.shell_history"
envs["PROMPT_COMMAND"] = "history -a"
Expand Down

0 comments on commit 998bec5

Please sign in to comment.