Static files slow? #809

Closed
opened 2025-08-09 17:17:45 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @jbaxleyiii on 4/23/2017

This may be the wrong place for this

After playing around with the sample projects, I wanted to get a performance benchmark. I setup a deploy to now using a simple docker file:

FROM microsoft/aspnetcore:1.1
RUN apt-get update
RUN apt-get install curl
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash
RUN apt-get install -y build-essential nodejs
WORKDIR /app
ENV ASPNETCORE_URLS http://*:80
ENV ASPNETCORE_ENVIRONMENT Production
ENV NODE_ENV production
EXPOSE 80
COPY ./bin/Release/netcoreapp1.1/publish/ /app
ENTRYPOINT ["dotnet", "RockNative.dll"]

The response time are really not good. Especially for loading simple static assets. Am I doing something wrong here? Are there spec requirements for running a kestrel server?

static

The site is deployed here if you want to take a look.

Thanks!

*Originally created by @jbaxleyiii on 4/23/2017* *This may be the wrong place for this* After playing around with the sample projects, I wanted to get a performance benchmark. I setup a deploy to [`now`](https://zeit.co/now) using a simple docker file: ```Dockerfile FROM microsoft/aspnetcore:1.1 RUN apt-get update RUN apt-get install curl RUN curl -sL https://deb.nodesource.com/setup_6.x | bash RUN apt-get install -y build-essential nodejs WORKDIR /app ENV ASPNETCORE_URLS http://*:80 ENV ASPNETCORE_ENVIRONMENT Production ENV NODE_ENV production EXPOSE 80 COPY ./bin/Release/netcoreapp1.1/publish/ /app ENTRYPOINT ["dotnet", "RockNative.dll"] ``` The response time are really not good. Especially for loading simple static assets. Am I doing something wrong here? Are there spec requirements for running a kestrel server? ![static](https://cloud.githubusercontent.com/assets/4967600/25316294/8cf7f86c-2832-11e7-825f-94acd4605619.png) The site is deployed [here](https://web-eqxkrklraj.now.sh/) if you want to take a look. Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#809
No description provided.