[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-693096-105":59,"doc-detail-693096-en":130,"doc-similar-693096":149},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","performance-best-practices-using-java-aws-lambda-cold-start-optimization-study","Performance best practices using Java AWS lambda - Cold start optimization study","","Paper studies performance best practices for Java functions running on AWS Lambda, focusing on mitigating significant latencies caused by cold starts. It builds a system using AWS Lambda, Java, DynamoDB, and API Gateway, then measures each optimization technique independently with load tests before evaluating combined approaches. The work proposes and compares strategies including SnapStart, Arm64 architecture, AWS SDK v2, GraalVM pre-compilation, and JavaToolOptions settings, tracking performance and trade-offs, starting from an initial e-commerce architecture.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/performance-best-practices-using-java-aws-lambda-cold-start-optimization-study/693096/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/performance-best-practices-using-java-aws-lambda-cold-start-optimization-study/693096.png","ImageObject",300,407,{"name":92,"@type":93},"Dipper","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-30","2026-11-09",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What performance problem does the paper focus on for Java on AWS Lambda?","Question",{"text":112,"@type":113},"It focuses on significant latencies, especially the cold start problem when using Java with AWS Lambda.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"What is the baseline system used to evaluate optimizations?",{"text":117,"@type":113},"The baseline system integrates AWS Lambda with Java, DynamoDB, and API Gateway, implemented as a simple e-commerce solution with catalog, customer, and order services.",{"name":119,"@type":110,"acceptedAnswer":120},"Which optimization approaches does the paper propose to reduce cold starts and improve Lambda performance?",{"text":121,"@type":113},"It proposes profiling memory configuration, using SnapStart, choosing Arm64 over x86_64, using AWS SDK v2 for Java, pre-compiling with GraalVM, and customizing Java tool options via the JAVATOOL OPTIONS environment variable.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},693096,1794249674,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":39,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":34,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":129,"read_time":143,"preview_page_count":8,"preview_urls":144},1374404997633,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","Performance best practices using Java AWS lambda  \nMeasuring enhancements of different optimization techniques combining java with AWS lambda  \nJuan Mera Men´endez, Martin Bartlett  \narXiv :2310 . 16510v1 [ cs . SE] 25 Oct 2023  \nAbstract—Despite its already widespread popularity, it continues to gain adoption. More and more developers and architects continue to adopt and apply the FaaS (Function as a Service) model in cloud solutions. The most extensively used FaaS service is AWS Lambda, provided by Amazon Web Services. Moreover, despite the new trends in programming languages, Java still maintains a signi􀀂cant share of usage. The main problem that arises when using these two technologies together is widely known: signi􀀂cant latencies and the dreaded cold start. However, it is possible to greatly mitigate this problem without dedicating too much effort. In this article, various techniques, strategies and approaches will be studied with the aim of reducing the cold start and signi􀀂cantly improving the performance of Lambda functions with Java. Starting from a system that involves AWS lambda, java, DynamoDB and Api Gateway. Each approach will be tested independently, analyzing its impact through load tests. Subsequently, they will be tested in combination in an effort to achieve the greatest possible performance improvement.  \nIndex Terms—AWS Lambda, AWS, Amazon Web Services, Java, performance, cold start, FaaS, Function as a Service, Serverless, GraalVM, Snapstart, JAVATOOL OPTIONS  \nI. INTRODUCTION  \nFOLLOWING the trend of recent years, the server  \nless approach [9] continues to gain popularity due to its scalability, 􀀃exibility, agility, and other well-known bene􀀂ts. According to the survey conducted by Datadog in August 2023 [13], one of the most popularly used services within this architectural model is AWS Lambda (provided by Amazon Web Services) and over a 10% of Lambda functions are written in Java. [11] Furthermore Java is the primary language for 30% of professional developers.  \nBeing the performance one of the main criteria when comparing solutions, the survey shows that cold start of java lambdas are roughly twice as long as the cold starts of other languages like Node.js and Python [3], [4](which are the most used languages with AWS lambda) . Indeed, it becomes evident why performance is the 􀀂rst aspect brought to the table when discussing the combination of Java with AWS Lambda. And rightfully so, if it’s not taken into account when building the  \nsystem, it’s common to encounter time-out issues in API Gateway due to excessively high latency of the functions. Furthermore, another noteworthy bene􀀂t of improving the performance of Lambda functions is the reduction in their cost. This is because the cost model for this service is based on computing time. By reducing this time, the cost is also reduced.  \nThus, the primary goal of the study is to optimize the way Java code is executed on AWS Lambda and provide a set of best practices that assist this approach in being competitive in terms of performance. To achieve that goal, a series of techniques, approaches or strategies are proposed with the aim of improving function performance and mitigating cold starts:  \n􀀏 Pro􀀂le the function to see which memory con􀀂guration is better suited in terms of performance.  \n􀀏 Use Snapstart to reduce the cold-start latency.  \n􀀏 Choose the Arm64 Lambda architecture against the default x86 64 architecture.  \n􀀏 Use the AWS SDK v2 for Java.  \n􀀏 Pre-compile the source code with GraalVM to avoid initialize all classes in runtime.  \n􀀏 Java Lambda function customization settings: JAVATOOL OPTIONS environment variable.  \n􀀏 Other good practices  \nThe improvement caused by each technique will be measured independently since some of them are not compatible with each other. The advantages and drawbacks of the techniques will be discussed as well.  \nFor the implementation of each technique or approach, we start with an initial, unoptimized syste","cbCaijERDldvWMqD","https://ap.wps.com/l/cbCaijERDldvWMqD","pdf",219426,"English","# I. Introduction\n# II. Initial Application\n## Initial solution architecture\n# III. Performance Tests","[{\"question\":\"What performance problem does the paper focus on for Java on AWS Lambda?\",\"answer\":\"It focuses on significant latencies, especially the cold start problem when using Java with AWS Lambda.\"},{\"question\":\"What is the baseline system used to evaluate optimizations?\",\"answer\":\"The baseline system integrates AWS Lambda with Java, DynamoDB, and API Gateway, implemented as a simple e-commerce solution with catalog, customer, and order services.\"},{\"question\":\"Which optimization approaches does the paper propose to reduce cold starts and improve Lambda performance?\",\"answer\":\"It proposes profiling memory configuration, using SnapStart, choosing Arm64 over x86_64, using AWS SDK v2 for Java, pre-compiling with GraalVM, and customizing Java tool options via the JAVATOOL OPTIONS environment variable.\"}]","Performance best practices using Java AWS lambda - Cold start optimization study | PDF",18,[145],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/9eee7cee9d01bbc71e008827f3d4fb32.webp",983,1391,{"list":150,"token":66},[151,158,164,170,176,183,189,195,201,207],{"doc_id":152,"doc_title":153,"file_type":137,"home_preview_img_url":154,"slug":155,"view_count":156,"category_name":40,"create_tm":157},290377,"Dynamic Resource Scaling for Microservices - A Machine Learning-driven Predictive Approach - MSc Research Project","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903055605/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=%2FKMXiY2WeaJ4uimFEfVvayxuedw%3D","dynamic-resource-scaling-for-microservices-a-machine-learning-driven-predictive-approach-msc-research-project",12,1789641525,{"doc_id":159,"doc_title":160,"file_type":137,"home_preview_img_url":161,"slug":162,"view_count":19,"category_name":40,"create_tm":163},693090,"AWS Lambda for Serverless Data Aggregation and Reporting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230005085128/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=4HCnlrL6bhgo3gR%2FvyQVB1wvaEM%3D","aws-lambda-for-serverless-data-aggregation-and-reporting",1794249656,{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":34,"category_name":40,"create_tm":169},656190,"Central Validation Service (TEDCVS) Architecture Overview - Document","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974786454/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=1rmbnYpyG6Vh8J0MvfDDpLfXa7s%3D","central-validation-service-tedcvs-architecture-overview-document",1792966914,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":8,"category_name":40,"create_tm":175},760768,"Comparative Analysis of AWS Model Deployment Services","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044526728/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=ORY8BH%2FKjF8rRAvt2ndOgMgpYYI%3D","comparative-analysis-of-aws-model-deployment-services",1795909381,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":40,"create_tm":182},290703,"MSc Research Project - Enhancing Predictive Analysis through Machine Learning Models in Cloud Computing Environments","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229903066534/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=pUiVDj0oUrr8hOZ%2FV7EUqIbLAMg%3D","msc-research-project-enhancing-predictive-analysis-through-machine-learning-models-in-cloud-computing-environments",14,1789642397,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":29,"category_name":40,"create_tm":188},505932,"CritiCall Ontario Migrates Vital Healthcare Support to AWS with Datavail","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229933241266/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=LZQYJ2dQ88TOtLEhDPjRekR%2Fk7k%3D","criticall-ontario-migrates-vital-healthcare-support-to-aws-with-datavail",1791156000,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":81,"category_name":40,"create_tm":194},693119,"Comprehensive Review of Performance Optimization Strategies for Serverless Applications on AWS Lambda","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230004263061/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=AEbPS3RqW%2BA2VL65Qyki0To8oXw%3D","comprehensive-review-of-performance-optimization-strategies-for-serverless-applications-on-aws-lambda",1794250169,{"doc_id":196,"doc_title":197,"file_type":137,"home_preview_img_url":198,"slug":199,"view_count":14,"category_name":40,"create_tm":200},703208,"An Empirical Evaluation of Serverless Cloud Infrastructure for Large-Scale Data Processing","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230013458218/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=hRuzLxe6AmDnV0J%2BJL8MDiQM1bs%3D","an-empirical-evaluation-of-serverless-cloud-infrastructure-for-large-scale-data-processing",1794563085,{"doc_id":202,"doc_title":203,"file_type":137,"home_preview_img_url":204,"slug":205,"view_count":46,"category_name":40,"create_tm":206},140765,"Aquila - QuEra Computing Inc. White Paper - Selected best practices","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229866295231/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=SxUj0O5MzPAFZPxyljRglV7FpO4%3D","aquila-quera-computing-inc-white-paper-selected-best-practices",1787612808,{"doc_id":208,"doc_title":209,"file_type":137,"home_preview_img_url":210,"slug":211,"view_count":81,"category_name":40,"create_tm":212},696156,"Building Robust REST APIs with Spring Boot - A Practical Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009756946/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111939&Signature=2SwMtxupD6RdGC8%2Bo%2B%2Bbjdw0xAg%3D","building-robust-rest-apis-with-spring-boot-a-practical-guide",1794431611]