Adding Timestamp to Logs
How many small script or process do you have which just log to stdout/stderr? A few, dozens? Their running as cronjobs or service? Stashing the logs somewhere, like:
./produces-some-log.sh 2>&1 > log-of-my-script.log
Java’s Enum.values() Hidden Allocations
I recently profiled an app of mine. During profiling, I’ve noticed tons of array allocations. Something like:
Deploying JVM in tiny containers, be careful!
I`ve deployed my https://rohrli.gamlor.info service into the smallest possible 2017-04-25-jvm-in-containers[Triton] container. Except me, noone is going to use it anyway -. This container has 128Mbyte of memory, and 1/16th CPU time. The OpenJDK JVM is known for consuming tons of memory. And it is somewhat true. However, the JVM also runs in a small container. In this blog post I give some recommendations. The problems exists in small Docker and Triton containers. I show everything for both.
JVM는 작은 컨테이너 안에 배포하면 주의!
저는 저의 https://rohrli.gamlor.info 서비스가 재일 작은 트리톤(Triton) 컨테이너 안에 배포됐어요. 저 말고 아무도 사용해서 괜찮아요 -. 이 컨테이너는 128MB 메모리만 있고, 1/16CPU만 있어요. OpenJDK JVM은 메모리를 많이 사용하기 잘 알려져요. 부분적으로 사실이에요. 근데 JVM이 작은 컨테이너 안에 도 작동해요. 이 글에는 조언을 제공할 거예요. 모은 작은 도커(Docker)와 트리톤 컨테이너가 이 문제 있어요. 제가 둘 다 보여줄 거예요 =)
Joyent’s Manta. Store and Compute
Until now we only used Joyent’s Triton. We deployed Docker container with Triton. Probably we want to store date somewhere. Manta is a Amazon S3 like storage service. However, Manta also can compute on your data. Let’s start!