blob: 63847b8062695e19bd4dfae03755db2e8b9b7092 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <vespa/vespalib/util/resource_limits.h>
#include <iostream>
int
main(int, char**)
{
auto limits = vespalib::ResourceLimits::create();
std::cout << "Memory limit: " << limits.memory() << '\n' <<
"Cpu limit: " << limits.cpu() << std::endl;
return 0;
}
|