Skip to content

OS thread limit reached while compiling from source #2017

Closed
@xoxys

Description

@xoxys
  • Gitea version (or commit ref): 1.1.2
  • Git version: Not relevant
  • Operating system: CentOS 6
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant

Description

I use gitea on a shared hoster environment and compiling gitea from source. threads-per-user are limited to 300. Sometimes i got following error while make build for multiple modules:

runtime: failed to create new OS thread (have 7 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc

I try to limit the threads by make with

make generate build -j2 

but the result is the same. Is it possible to limit threads/processes while compiling?

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/staletopic/buildPR changes how Gitea is built, i.e. regarding Docker or the Makefile

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions