So I was facing issues when I was trying to ingest...
# troubleshooting
a
So I was facing issues when I was trying to ingest kafka data as the pinot queries became really slow then I gave GC memory to all the three components
export JAVA_OPTS="-Xms2G -Xmx4G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Xlog:gc*:gc-pinot-controller.log"
bin/pinot-admin.sh StartController  -configFileName /Users/adityaverma/apache-pinot/apache-pinot-1.2.0-bin/conf/pinot-controller.conf
export JAVA_OPTS="-Xms2G -Xmx4G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Xlog:gc*:gc-pinot-broker.log"
bin/pinot-admin.sh StartBroker -configFileName /Users/adityaverma/apache-pinot/apache-pinot-1.2.0-bin/conf/pinot-broker.conf
export JAVA_OPTS="-Xms4G -Xmx8G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Xlog:gc*:gc-pinot-server.log"
bin/pinot-admin.sh StartServer -configFileName /Users/adityaverma/apache-pinot/apache-pinot-1.2.0-bin/conf/pinot-server.conf
Now they are running very fast. can anyone explain what happened ?
m
You mean heap memory? What was the old value?
a
I just ran them wihtout giving them any memory. they ran on default.
m
I think default is 256MB, which is extremely low for Pinot, and would explain what you saw.
a
got it . so anytime I run I shoudl give them some heap. but how is this heap used and where ?
can you give a little idea
m
Primarily used for ingestion, and also decoding messages during ingestion. But the data itself is off heap
a
got it. so if the data comes in completely , then the heap wouldn't have much role. I think even for data querying and retrieving results . Heap plays a role . No ?