[DEV] upsate memory usage

This commit is contained in:
Edouard DUPIN 2022-03-13 18:24:02 +01:00
parent 70c8c67f6d
commit 3d462395b4
4 changed files with 43 additions and 5 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src">
<classpathentry kind="src" output="out/maven/classes" path="src">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
@ -15,7 +15,6 @@
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-14">
<attributes>
<attribute name="module" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
@ -24,5 +23,22 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="out/maven/generated-sources/annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="out/maven/test-classes" path="out/maven/generated-test-sources/test-annotations">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="ignore_optional_problems" value="true"/>
<attribute name="m2e-apt" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="out/maven/classes"/>
</classpath>

View File

@ -1,10 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>karauth</name>
<name>karauth_back</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>full,incremental,</triggers>
@ -25,4 +30,15 @@
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
<filteredResources>
<filter>
<id>1647191868592</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>

View File

@ -17,5 +17,5 @@ WORKDIR /application/
EXPOSE 17080
CMD ["java", "-cp", "/application/application.jar", "org.kar.oauth.WebLauncher"]
CMD ["java", , "-Xms64M", "-Xmx1G", "-cp", "/application/application.jar", "org.kar.oauth.WebLauncher"]

View File

@ -7,8 +7,12 @@ services:
command: --default-authentication-plugin=mysql_native_password
env_file:
- ./config.env
ports:
- 17036:3306
# for test only....
volumes:
- ./data:/var/lib/mysql
- /workspace/data/karauth/db:/var/lib/mysql
mem_limit: 400m
karauth_adminer_service:
image: adminer:latest
@ -17,6 +21,7 @@ services:
- 17079:8080
links:
- karauth_db_service:db
mem_limit: 100m
karauth_back_service:
build: back/
@ -28,5 +33,6 @@ services:
- ./config.env
links:
- karauth_db_service:db
mem_limit: 1200m