Closed Rohlik closed 7 years ago
Hi @Rohlik , I'm guessing it is one of the following, both permissions related:
Please check these and let me know if that solves your problem.
We are using root for running this app in our environment:
#ps aux
root 18241 0.4 7.3 2401064 139000 ? Sl bře14 7:39 java -cp KafkaOffsetMonitor-assembly-0.4.1-SNAPSHOT.jar com.quantifind.kafka.offsetapp.OffsetGetterWeb --zk x.x.x.x,x.x.x.x,x.x.x.x --port 9001 --refresh 10.seconds --retain 2.days
Permission for dir and files:
drwxr-xr-x 2 root root 4096 14. bře 19.16 kafka-offset-monitor
-rw-r--r-- 1 root root 4391936 14. bře 19.16 offsetapp.db
-rw-r--r-- 1 root root 0 14. bře 19.16 offsetapp.db-journal
Restarting app solve my problem, for while.....then problem happening again. PS: After restart, it works for 10-11,5 hours and then error comes up.
Ahh, then you are likely legitimately running out of memory.
As you can see I have some memory available, also swap is almost empty.
#free -m
total used free shared buff/cache available
Mem: 992 640 65 103 287 81
Swap: 1022 16 1006
How much memory I need for running offset monitoring tool without problem?
Hi @Rohlik I recommend you run this as a user other than root, as you may also run into issues with the DB trying to run its native code from the /tmp directory as root, which most linux distributions do not allow be default.
Hi, first, thank you for your time and this great app.
Second, I have this problem:
I using retain 2 days and Zookeeper as storage. My version is 0.4.1