Skip to main content

Session overage time calculations?

Answered

Comments

1 comment

  • Adam DeJans Jr.
    • Gurobi Staff

    Hi Chris,

    Thanks for the detailed explanation. What you’re observing actually lines up with how the Web License Service (WLS) handles session usage.

    According to our documentation here: How do I resolve the error "Overage for too long"?

    WLS evaluates usage based on active sessions, and a session continues to count against your baseline until:

    1. The Gurobi environment is closed, and
    2. The token’s lifespan expires (the default minimum is 5 minutes).

    This means even after a short job finishes (or if you cancel a job) the session remains “active” for up to 5 minutes while the token ages out. When you rapidly start, cancel, and restart jobs, the older sessions may still be counted. This can produce brief periods where WLS sees 3 active sessions, even though you may think only 1–2 jobs are running.

    If these overlaps persist across several 5-minute windows, WLS reports something like the error you see: “Overage for too long, 3 active sessions and over the baseline for 32 minutes.” 

    This explains why short jobs or tightly restarted jobs trigger the error even though your baseline allows 2 sessions. To avoid this behavior make sure environments are explicitly closed so tokens begin expiring immediately and stagger job launches on your cluster so restarts don’t overlap in the same 5-minute windows.

    If your workflow requires 3 active sessions consistently, please feel free to contact our licensing team or open a support ticket. We can review your case and help determine whether an additional license or an adjusted setup is appropriate for your needs.

    Let me know if you have any other questions!

    2

Please sign in to leave a comment.