AOT kompilering för minskad starttid av Java-baserade tjänster
2023 (Swedish)Independent thesis Basic level (degree of Bachelor), 20 credits / 30 HE credits
Student thesisAlternative title
AOT compilation to reduce startup time for Java-based services (English)
Abstract [en]
Software engineering architectures, such as microservices and serverless, have been increasingly adopted for their ability to address architectural challenges through a modular approach. This modularity involves isolating components and assigning them specific responsibilities independently of other components. Java, a computationally robust language, is frequently utilized in microservice architectures; however, the Java Virtual Machine (JVM) is often criticized for its slow and unpredictable startup times in these environments. This study investigates the startup time, response time, and CPU load of Java services compiled with either the JVM or GraalVM. A microservice system comprising three testable Java services was developed and monitored to identify any differences in the aforementioned metrics. The results indicate that GraalVM outperforms the JVM in terms of startup time. However, the impact of GraalVM on response time is not statistically significant enough to reject the null hypothesis. Additionally, GraalVM demonstrates lower CPU usage during cold starts. From an environmental perspective it is important to note that the shortened start time potentially comes at the cost of an increased development time depending on the complexity of the system and the seniority of the developer.
Place, publisher, year, edition, pages
2023. , p. 59
Keywords [en]
Microservices, serverless, cold starts, GraalVM, Java Virtual Machine, Docker
National Category
Information Systems, Social aspects
Identifiers
URN: urn:nbn:se:his:diva-24086OAI: oai:DiVA.org:his-24086DiVA, id: diva2:1879910
Subject / course
Informationsteknologi
Educational program
Web Developer - Programming
Supervisors
Examiners
Note
Det finns övrigt digitalt material (t.ex. film-, bild- eller ljudfiler) eller modeller/artefakter tillhörande examensarbetet som ska skickas till arkivet.
There are other digital material (eg film, image or audio files) or models/artifacts that belongs to the thesis and need to be archived.
2024-06-292024-06-292024-06-29Bibliographically approved