Skip to content

Commit

Permalink
itsm: limit memory to 1G
Browse files Browse the repository at this point in the history
  • Loading branch information
zexi committed Jun 3, 2020
1 parent 4f08e77 commit 83c05e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/manager/component/itsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ non_default_domain_projects=false`
const (
JAVA_APP_JAR = "JAVA_APP_JAR"
JAVA_APP_WORKING_DIR = "/deployments"
JAVA_OPTIONS = "JAVA_OPTIONS"
)

var (
Expand Down Expand Up @@ -229,6 +230,11 @@ func (m *itsmManager) getDeployment(oc *v1alpha1.OnecloudCluster, cfg *v1alpha1.
Name: JAVA_APP_JAR,
Value: "itsm.jar",
},
// set max memory to 1G
{
Name: JAVA_OPTIONS,
Value: "-Xms1024M -Xmx1024M",
},
},
VolumeMounts: volMounts,
},
Expand Down

0 comments on commit 83c05e9

Please sign in to comment.