Skip to content

High CPU & RAM Usage on ARM32 and ARM64 #4031

@bella-WI

Description

@bella-WI

Preflight checklist

Ory Network Project

No response

Describe the bug

Hey guys,
we are using hydra in our embedded devices as an oauth2-server for machine client access. So far everything worked like a charm and we didn't have any issues.

After updating to version 2.3.0 we are facing issues with high cpu und ram loads. This only happens as soon as the time of the system is increased to a date in the future. For example I set the timestamp to the 10.10.2027. And resource consumption increases.
When I set the timestamp even more in the future, the resources are exhausted for a longer time, so that the kernel kills the process. It seems like some cleanup is happening during that time.
Could this be related to these lines?

fosite.AccessToken: time.Now().Add(time.Hour),

Is this a known issue? In 2.2.0 this issue didn't happen.
My tests could not pinpoint the cause.

Reproducing the bug

Steps to reproduce.

  1. Start hydra on arm32 arm64 architecture
  2. increase the timestamp to a date in the future
  3. see cpu and ram sky rocket

Relevant log output

Unfortunately no logs from hydra

Relevant configuration

Version

2.3.0

On which operating system are you observing this issue?

Linux

In which environment are you deploying?

Binary

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions