Questions tagged [cold-start]

In general, a cold start is the start-up of a recently unused ("cold") application, typically incurring an above average start-up time. In contrast, a recently used application is considered "warm."

107 questions
2
votes
2 answers

Android slow cold start with firebase

I felt my application cold start is slow and was more sure when Firebase Performance mentioned that. I used logcat Displayed to make an initial compare which displayed at my Samsung galaxy S8: /.list.MainActivity: +2s81ms This is replicated by…
epic
  • 1,333
  • 1
  • 13
  • 27
2
votes
1 answer

AWS Lambda cold start issue with spring boot

I am new to aws lambda and I am moving my spring boot 2.x based project to lambda.But I am struggling with lambda cold-start and warm-up. I tried a few things mentioned in this…
nikhil
  • 65
  • 2
  • 9
2
votes
2 answers

Does support for JDK 11 in AWS Lambdas introduce any performance improvements? Especially regarding cold starts?

It seems, for AWS Lambdas, that Java is noticeably slower than other supported languages when it comes to cold starts. Does JDK 11 have any performance enhancements, compared to JDK 8, that may improve the cold start time?
2
votes
5 answers

What is the cause of a cold start latency in AWS Lambda?

I have a Lambda function written in Java which is being accessed from API Gateway. In cold start scenarios, the actual code is taking 1.5 secs to complete execution(Verified from Cloudwatch Logs) but it's taking more than 10 secs to get the final…
2
votes
1 answer

An Alternative for Firebase functions ? Is it okay to run them on a VM?

I am using firebase functions for an Uberlike product. I can't get expected performance. Specially it takes a long time to load data from realtime-db. Up to 2-3 seconds for a read. It's may be due to called start, which is discussed here. => Why is…
2
votes
2 answers

AWS Lambda function times out on 1st invocation, works on 2nd invocation

My AWS Lambda function integrated with AWS API- Gateway request URL is getting timed out for every first request but it works for the next request. Note: We also tried to keep the Lambdas warm by scheduling them in CloudWatch, but it didn't work.
2
votes
0 answers

Long cold start delay for the first time app is installed when using the latest gradle 2.1.2, workaround?

So I've been noticing something strange when using the newest gradle(2.1.2) for building my apps, the first time the app is installed the cold start screen is dramatically long (10 to 30 seconds even), I thought it was odd and just changed the…
1
vote
0 answers

How to get cold start metrics in flutter app for Android build?

I want to measure TTID and TTFD, For TTFD i will add my custom trace ( if you have any ideas feel free to share),but for TTID android builds by default gives a displayed tag in the logcat with time taken. I am assuming that is the best right wah to…
1
vote
2 answers

SnapStart function priming - Doesn't seem to be working

I’m somewhat new to Kotlin/Java, but I have been using AWS Lambda for several years now (all Python and Node). I’ve been trying to “successfully” enable SnapStart on a SpringBoot Lambda using Kotlin running on java11 corretto (the only runtime…
1
vote
1 answer

aws sam build failing: property SnapStart not defined for resource of type AWS::Serverless::Function

AWS sam build failing after adding SnapStart property in function yaml file. [InvalidResourceException('MyFunSnapstart', 'property SnapStart not defined for resource of type AWS::Serverless::Function'),…
Ajay
  • 81
  • 8
1
vote
1 answer

Azure Functions - Consumption plan & Cold starts

I have an Azure Function App, and sometimes, I notice that the function API (HTTP triggered) takes longer to respond. I believe this is due to cold starts. Within my Function App, I have a function, which is a timer, that is triggered every…
user8400863
  • 655
  • 1
  • 7
  • 17
1
vote
0 answers

Lambda function cold start faster than subsequent warm call

I'm using serverless framework to deploy my functions to AWS Lambdas. The development is done in Kotlin using Java runtime. To mitigate the cold start issue to some extent, I'm using Serverless Plugin Warmup My handler function looks something like…
Kancha
  • 409
  • 1
  • 3
  • 11
1
vote
0 answers

Python NMEA GNSS Cold Start command

On my hardware, I translate the usb port to com using the usb_transit_on internal command. After that, I connect to the port using the program and when I enter this command "b5 62 06 04 04 00 ff ff 00 00 0c 5d" I perform a cold restart and note the…
1
vote
0 answers

AWS Lambda is not invoked first time in the day when it is called but later invocations work

I have two lambda functions in my AWS. One acts as a custom authorizer and the other acts as a notification service which calls the firebase FCM notification service. When a request is made first time in a day to the notification lambda there is no…
codeinprogress
  • 3,193
  • 7
  • 43
  • 69
1
vote
1 answer

Azure Functions cold start when the warm instance count is increasing beyond 1

In Azure Functions consumption mode, is there any cold start when the warm instance count goes from 1 to N? I'm aware of cold starts that customers experience when there are no warm instances running. How does this work when the app is scaling…
user246392
  • 2,661
  • 11
  • 54
  • 96