Giter VIP home page Giter VIP logo

Comments (3)

akhilvpsharma avatar akhilvpsharma commented on August 22, 2024 1

@tkowalcz Thanks a lot for the explanation. Sorry for the late reply, took a while to test. It's working as expected now. Closing the ticket. Thanks again :)

from tjahzi.

tkowalcz avatar tkowalcz commented on August 22, 2024

Hi,


TL;DR: set useOffHeapBuffer=false config option so that data structures used by Tjahzi will be allocated on regular Java heap instead of off-heap.


I am not very versed in Docker usage, but according to your output I think this is what happens:

  • You have 18761956K (~18GB) of available memory.
  • JVM old gen will take 18103971K (17,2GB) out of it.
  • Metaspace and code cache will take ~382MB
  • Thread stacks (-Xss1M) will take 250MB (Thread Count: 250 * 1M)

If I am correct this totals to 18751715K so the container has about 10MB of free memory.
This lines up nicely with -XX:MaxDirectMemorySize=10M setting that allows the java app to allocate at most 10M of
off-heap data.

To fix this you need to increase MaxDirectMemorySize while decreasing other settings OR set Tjahzi to allocate less than 10M of off-heap data.

Let me elaborate on that last option. While configuring Tjahzi you can set useOffHeapBuffer=false so that data structures used by Tjahzi will be part of a regular Java heap. I do not expect that this would have significant performance impact on the application.

You can also set bufferSizeMegabytes to value lower than 10M from its default value of 32M. This can impact log delivery if Tjahzi cannot keep up sending data to Loki while application produices the logs into the buffer.

from tjahzi.

tkowalcz avatar tkowalcz commented on August 22, 2024

@akhilvpsharma doe this explanation help and fixes the issue or do you need any more assistance?

from tjahzi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.