question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[http trace] the http trace view will cause browser memory raise

See original GitHub issue

is about http trace problem, in /instances/219a2939eb94/httptrace view, the browser memory usage will raise and page dead in seconds.

chartData is too big… _20180802124313

so i have make some log output on this loop from traces-chart.vue,

let i = 0;
for (let time = Math.floor(oldest.valueOf() / interval) * interval; time < now; time += interval) {
          i++;
          console.log('loop', i);
          console.log('loop --- time', time);
          console.log('loop --- now', now);
       //...
}

i found it is because the timestamp unit of now and time is different _20180802124531 so the loop will run many times till the page dead.

the time is come from server’s httptrace response, something like this…, timestamp unit is second image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11

github_iconTop GitHub Comments

3reactions
hirohecommented, Aug 2, 2018

i try debug step by step… find out httptrace.timestamp is serialized in com.fasterxml.jackson.datatype.jsr310.ser.InstantSerializerBase#serialize

if (useTimestamp(provider)) { // pass when serialization.write-dates-as-timestamps is true
    if (useNanoseconds(provider)) { // pass by default,
        // have to set serialization.write-date-timestamps-as-nanoseconds to false,
        // to prevent timestamp format in seconds unit
        generator.writeNumber(DecimalUtils.toBigDecimal(
                getEpochSeconds.applyAsLong(value), getNanoseconds.applyAsInt(value)
        ));
        return;
    }
    generator.writeNumber(getEpochMillis.applyAsLong(value));
    return;
}
  • without any spring.jackson.serialization config. httptrace.timestamp is ISO format image

  • with spring.jackson.serialization.write-dates-as-timestamps: true, httptrace.timestamp is timestamp of second unit image

  • with spring.jackson.serialization.write-dates-as-timestamps: true and spring.jackson.serialization.write-date-timestamps-as-nanoseconds: false httptrace.timestamp is timestamp of miliisecond unit image

three different format will happen🤔

0reactions
dazer007commented, Nov 22, 2018

Thank you, I have encountered such a problem…

Read more comments on GitHub >

github_iconTop Results From Across the Web

TRACE - HTTP - MDN Web Docs - Mozilla
The HTTP TRACE method performs a message loop-back test along the path to the target resource, providing a useful debugging mechanism.
Read more >
4 Types of Memory Leaks in JavaScript and How to Get Rid Of ...
In this article we will explore common types of memory leaks in client-side JavaScript code. We will also learn how to use the...
Read more >
Capture a system trace on a device - Android Developers
In the Debugging section, select System Tracing. The System Tracing app opens. Alternatively, if you've set up the System Tracing tile, you can...
Read more >
High Memory utilization and their root causes | Dynatrace
Increasing memory is the obvious workaround for memory leaks or badly written software. Let's discuss the two most common causes for Java high...
Read more >
How do I collect all the data required for troubleshooting AM ...
AM · Agent - /path/to/agent/instances/agent_n/logs/debug directory where the agent is installed. · HTTP trace - from the HTTP trace browser tool.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found