deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marios Andreou (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DTACLOUD-347) Deltacloud API leaking memory
Date Thu, 18 Oct 2012 14:40:05 GMT

    [ https://issues.apache.org/jira/browse/DTACLOUD-347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13479040#comment-13479040
] 

Marios Andreou commented on DTACLOUD-347:
-----------------------------------------

can easily reproduce on my laptop using the steps above (curl get /api/images):

[marios@name deltacloud]$ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [i386-linux]

[marios@name deltacloud]$ ./server/bin/deltacloudd -i mock -p 5001
Starting Deltacloud API :: mock :: http://localhost:5001/api

>> Thin web server (v1.5.0 codename Knife)
>> Debugging ON
>> Maximum connections set to 1024
>> Listening on localhost:5001, CTRL+C to stop
127.0.0.1 - - [18/Oct/2012 17:11:58] "GET /api/images HTTP/1.1" 200 3319 0.0176
127.0.0.1 - - [18/Oct/2012 17:11:58] "GET /api/images HTTP/1.1" 200 3319 0.0172
127.0.0.1 - - [18/Oct/2012 17:11:58] "GET /api/images HTTP/1.1" 200 3319 0.0156

...

127.0.0.1 - - [18/Oct/2012 17:36:38] "GET /api/images HTTP/1.1" 200 3319 0.7871
127.0.0.1 - - [18/Oct/2012 17:36:39] "GET /api/images HTTP/1.1" 200 3319 0.7887
127.0.0.1 - - [18/Oct/2012 17:36:40] "GET /api/images HTTP/1.1" 200 3319 0.8302



                
> Deltacloud API leaking memory
> -----------------------------
>
>                 Key: DTACLOUD-347
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-347
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Server
>         Environment: deltacloud-core, GIT adade32451815c8ee28e29be35636bd0f98473fc
>            Reporter: Michal Fojtik
>            Priority: Blocker
>              Labels: blocker-1.0.5
>
> Deltacloud API memory usage is slowly increasing after doing 100+ requests:
> Starting Deltacloud API :: mock :: http://localhost:3001/api
> >> Thin web server (v1.5.0 codename Knife)
> >> Debugging ON
> >> Maximum connections set to 1024
> >> Listening on localhost:3001, CTRL+C to stop
> 127.0.0.1 - - [17/Oct/2012 15:26:10] "GET /api/images HTTP/1.1" 200 4420 0.0308
> 127.0.0.1 - - [17/Oct/2012 15:26:17] "GET /api/images HTTP/1.1" 200 4420 0.0220
> 127.0.0.1 - - [17/Oct/2012 15:26:52] "GET /api/images HTTP/1.1" 200 4420 0.0219
> ... 1000 requests after:
> 127.0.0.1 - - [17/Oct/2012 15:27:53] "GET /api/images HTTP/1.1" 200 4420 0.1539
> 127.0.0.1 - - [17/Oct/2012 15:27:53] "GET /api/images HTTP/1.1" 200 4420 0.1554
> 127.0.0.1 - - [17/Oct/2012 15:27:53] "GET /api/images HTTP/1.1" 200 4420 0.1526
> As you can see the response time is slowly increasing and after few minutes it gets to
the point where the request take like 10 seconds to complete and all your free memory is gone
;-)
> This is easy to reproduce:
> 1. Start Deltacloud API ($ deltacloudd -i mock)
> 2. $ while true; do curl -H 'Accept: application/xml' --user 'mockuser:mockpassword'
http://localhost:3001/api/images > /dev/null; done
> 3. Keep it running for ~1minute and watch the console with Deltacloud API log.
> Thanks to Tomas Hrcka for reporting this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message