Skip to content

Commit

Permalink
Oracle DevServices: limit CPU to 2 to avoid excessive memory consumption
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed Apr 16, 2022
1 parent 3dc97c9 commit 99f4a91
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public RunningDevServicesDatasource startDatabase(Optional<String> username, Opt
container.withUsername(username.orElse(DEFAULT_DATABASE_USER))
.withPassword(password.orElse(DEFAULT_DATABASE_PASSWORD))
.withDatabaseName(datasourceName.orElse(DEFAULT_DATABASE_NAME));
container.withCreateContainerCmdModifier( cmd -> cmd.getHostConfig().withCpuCount( 2l ) );
additionalJdbcUrlProperties.forEach(container::withUrlParam);
container.start();

Expand Down

0 comments on commit 99f4a91

Please sign in to comment.