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

How to set a higher JVM heap size or spark driver/executor memory #97

Open
raksha1 opened this issue Jul 22, 2020 · 3 comments
Open

How to set a higher JVM heap size or spark driver/executor memory #97

raksha1 opened this issue Jul 22, 2020 · 3 comments

Comments

@raksha1
Copy link

raksha1 commented Jul 22, 2020

Is there a way to increase java heap size or spark driver/executor memory? The default JVM heap size of 4096MB is not enough and we are looking to increase the memory to 10GB at least.

How can we set a higher JVM heap size or spark memory?

We are running this job as a kubernetes cronjob and setting JAVA_OPTS environment variable (JAVA_OPTS="-Xms10g -Xmx10g") doesn't work.

Both memory request and limit are set to 16GB

@pavolloffay
Copy link
Member

The heap size should be configurable via JAVA_OPTS https://github.com/jaegertracing/spark-dependencies#quick-start

@pavolloffay
Copy link
Member

Could you please paste here pod spec?

@raksha1
Copy link
Author

raksha1 commented Jul 22, 2020

Here's the pod spec, started by the cronjob. I've removed irrelevant fields and changed names

apiVersion: v1
kind: Pod
metadata:
  labels:
    app: jaeger
    app.kubernetes.io/component: spark-dependencies
  name: jaeger-spark-dependencies
  namespace: jaeger
spec:
  containers:
  - env:
    - name: STORAGE
      value: elasticsearch
    - name: ES_NODES
      value: <elasticsearch endpoint>
    - name: ES_NODES_WAN_ONLY
      value: "true"
    - name: JAVA_OPTS
      value: -Xms10g -Xmx10g
    image: jaegertracing/spark-dependencies:latest
    imagePullPolicy: Always
    name: jaeger-spark-dependencies
    resources:
      limits:
        cpu: "2"
        memory: 16Gi
      requests:
        cpu: 300m
        memory: 16Gi

I did exec into the pod and checked JAVA_OPTS env. It is set

JAVA_OPTS=-Xms10g -Xmx10g

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

2 participants