
Security News
New React Server Components Vulnerabilities: DoS and Source Code Exposure
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.
@collaborne/use-cgroup-memory-limits
Advanced tools
Wrapper to apply cgroup memory limits to a Node process
A small wrapper around NodeJS that looks at the Cgroups memory settings, and sets the --max-old-space-size command-line argument in NODE_OPTIONS when it is not yet set.
Install as a runtime dependency
npm install @collaborne/use-group-memory-limits
Use use-cgroup-memory-limits instead of node in your start scripts
{
"name": "my-package",
// ...
"scripts": {
"start": "use-cgroup-memory-limits my-package-index.js"
},
// ...
}
This software is licensed under the Apache 2 license, quoted below.
Copyright 2020 Collaborne B.V. <http://github.com/Collaborne/>
Licensed under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
License for the specific language governing permissions and limitations under
the License.
FAQs
Wrapper to apply cgroup memory limits to a Node process
The npm package @collaborne/use-cgroup-memory-limits receives a total of 1 weekly downloads. As such, @collaborne/use-cgroup-memory-limits popularity was classified as not popular.
We found that @collaborne/use-cgroup-memory-limits demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.