-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OutOfMemoryError during minimization phase #1153
Comments
Another way is loading the agent in the startSut like below : |
Hi @ytfrank Can you paste the logs of EvoMaster core process When you write I have never run EvoMaster in that way, but in theory there should be no issue. There is no need to do a |
Thanks for your reply! Here is the infos:
Debuged the code, it seems the class in "com.open.app.*" can be instrumented by evoMaster:
I'll try the testing later to confirm it. |
hi, considering:
then the classes are instrumented. what happens is that you are running EM only for try to run EM for longer, eg also, for formatting code, can use "```" :) |
Yeah, It works also well for the app on tomcat. By the way, I tried testing an hour twice, but both were failed due to OutOfMemoryError. Any way to improve or get more debug info for the exception? There was 2 or 3 GB free memory on my laptop during the testing. 1st$ java -jar ~/Downloads/evomaster.jar --maxTime 3600s --outputFolder "/Users/apple/gitrepo/EvoMaster/whitebox/src/main/java/ks/long8" | | | / | | |
2nd$ java -jar ~/Downloads/evomaster.jar --maxTime 3600s --outputFolder "/Users/apple/gitrepo/EvoMaster/whitebox/src/main/java/ks/long8" | | | / | | |
|
Hi, |
Thanks for your reply!
|
hi @ytfrank , this is concerning. but, with a) if that is not enough, then try: b) let me know if that helps |
Great! It works well after adding the options. Still hope the testcases are shorter. java -Xmx13g -jar ~/Downloads/evomaster.jar --maxTime 600s --outputFolder "/Users/apple/gitrepo/EvoMaster/whitebox/src/main/java/ks/long8" --exportCoveredTarget true --maxResponseByteSize 5000 --minimize false | | | / | | |
|
hi @ytfrank can you try with also |
| | | / | | |
@component
Is there any way to input the signature and encryption algorithms into EvoMaster? |
hi @ytfrank, regarding (1), it is an issue with minimization algorithm. I think we naively double the memory in that phase... a more memory-aware algorithm should be implemented to avoid such issue. this can be considered a performance bug regarding (2), I would need more details... especially if there is any example online to clarify what you mean with |
OK. I just created a new issue for the low coverage: #1154 |
The following message occurred after running the driver class:
WARN - Fail to load org.evomaster.client.java.instrumentation.staticstate.ExecutionTracer
12 31, 2024 4:31:31 shaded.org.glassfish.jersey.internal.inject.Providers checkProviderRuntime
Warning: A provider org.evomaster.client.java.controller.internal.EMController registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime. Due to constraint configuration problems the provider org.evomaster.client.java.controller.internal.EMController will be ignored.
12 31, 2024 4:31:32 shaded.org.glassfish.jersey.internal.Errors logErrors
Warning: The following warnings have been detected: WARNING: The (sub)resource method getWarning in org.evomaster.client.java.controller.internal.EMController contains empty path annotation.
Here is the infos:
evoMaster driver, and running the drvier class in idea. Below is some part of class code:
public static void main(String[] args) {
logger.info("****** main thread started ******");
SutController controller = new KSEmbeddedSutController();
InstrumentedSutStarter starter = new InstrumentedSutStarter(controller);
}
@OverRide
public String startSut() {
try {
logger.info("Starting SUT...");
}
Our project is a spring mvc service, which deployed on tomcat 8.5.38. Although the evoMaster driver class and sut are in the same jvm, evoMaster cannot find and instrument the classes of the service "open-app-1.0-RELEASE". How can EvoMaster perform white-box testing on services running on Tomcat?
java -jar ~/Downloads/evomaster.jar --maxTime 10s --outputFolder “testcases”
Other important info:
java --version
: 1.8.0The text was updated successfully, but these errors were encountered: