Skip Menu |
 

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 107872
Status: new
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: jjp [...] siteimprove.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



X-MS-Exchange-Crosstenant-Fromentityheader: Hosted
Spamdiagnosticmetadata: NSPM
MIME-Version: 1.0
Spamdiagnosticoutput: 1:23
X-Spam-Flag: NO
X-Virus-Checked: Checked
Content-Type: multipart/alternative; boundary="_000_CY1PR0501MB1516830E00CD238540ACBD49B4390CY1PR0501MB1516_"
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Exchange-Antispam-Report-Test: UriScan:(108003899814671);
X-Spam-Score: -1.9
Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=jjp [...] siteimprove.com;
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id ABB452400A6 for <cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com>; Tue, 20 Oct 2015 04:17:46 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X5622cpOaN0c for <cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com>; Tue, 20 Oct 2015 04:17:45 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id ED293240020 for <bug-Perl-Dist-Strawberry [...] rt.cpan.org>; Tue, 20 Oct 2015 04:17:44 -0400 (EDT)
Received: (qmail 24375 invoked by alias); 20 Oct 2015 08:17:43 -0000
Received: from mail-bl2on0118.outbound.protection.outlook.com (HELO na01-bl2-obe.outbound.protection.outlook.com) (65.55.169.118) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 20 Oct 2015 01:17:40 -0700
Received: from CY1PR0501MB1516.namprd05.prod.outlook.com (10.160.149.152) by CY1PR0501MB1516.namprd05.prod.outlook.com (10.160.149.152) with Microsoft SMTP Server (TLS) id 15.1.300.14; Tue, 20 Oct 2015 08:17:32 +0000
Received: from CY1PR0501MB1516.namprd05.prod.outlook.com ([10.160.149.152]) by CY1PR0501MB1516.namprd05.prod.outlook.com ([10.160.149.152]) with mapi id 15.01.0300.010; Tue, 20 Oct 2015 08:17:32 +0000
Delivered-To: cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com
Subject: First https request is very slow when perl process memory usage is high
X-Spam-Check-BY: la.mx.develooper.com
Thread-Index: AdELDm6ZPcn+bgiZQeizW5/h+teoIw==
Date: Tue, 20 Oct 2015 08:17:32 +0000
X-Originatororg: siteimprove.com
X-Spam-Level:
X-MS-Exchange-Crosstenant-ID: ad30e5bc-301d-40db-a10a-0e8d40abe0f9
To: "bug-Perl-Dist-Strawberry [...] rt.cpan.org" <bug-Perl-Dist-Strawberry [...] rt.cpan.org>
X-Exchange-Antispam-Report-Cfa-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(5005006)(8121501046)(3002001);SRVR:CY1PR0501MB1516;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0501MB1516;
X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0501MB1516;
X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(199003)(189002)(19580395003)(101416001)(19625215002)(105586002)(87936001)(99286002)(106356001)(46102003)(5007970100001)(11100500001)(5004730100002)(77096005)(229853001)(2351001)(76576001)(81156007)(5008740100001)(10400500002)(5002640100001)(5003600100002)(92566002)(5001920100001)(110136002)(107886002)(122556002)(40100003)(189998001)(102836002)(74316001)(450100001)(15975445007)(19300405004)(2501003)(97736004)(86362001)(33656002)(16236675004)(66066001)(50986999)(64706001)(54356999)(2900100001)(5001960100002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY1PR0501MB1516;H:CY1PR0501MB1516.namprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en;
X-Spam-Status: No, score=-1.9 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001] autolearn=ham
X-Microsoft-Exchange-Diagnostics: 1;CY1PR0501MB1516;5:BP8wD6SKEXCw0uDOhWbM9VbEUdcrAgYMFVVmDTTWPo3mErOEUJCN047cMnlY+7oi6CsbMfDRahflo8ghgup7qZqDRz5vb6fDjJ+QUiZi0Xy6I0E67IoBu+QBY8nqTQe5kI72yViCcq4o5Hu81B//Gg==;24:XFTMNwHU2FgOXRrPk6yb6TE2tarY63gcMhR7dB1OX1dr+ZAtcPjPB2uj58UZpX52/XuUyhkaGUHPa2thXMApdbrsaurqt5RtfMaMMZZwPRw=;20:TOoS2CviRZDwPGqjldQJ8qeoRZl/quwwMgSZZSukrdm5wvGo8Y7HO90kAy5zSQsgswjazcN6/AmY60QCfNuvnQ==
Received-SPF: None (protection.outlook.com: siteimprove.com does not designate permitted sender hosts)
Content-Language: en-US
Message-ID: <CY1PR0501MB1516830E00CD238540ACBD49B4390 [...] CY1PR0501MB1516.namprd05.prod.outlook.com>
X-MS-Tnef-Correlator:
X-Microsoft-Antispam-PRVS: <CY1PR0501MB15166F4B5200754E35A4FD77B4390 [...] CY1PR0501MB1516.namprd05.prod.outlook.com>
Return-Path: <jjp [...] siteimprove.com>
X-MS-Exchange-Crosstenant-Originalarrivaltime: 20 Oct 2015 08:17:32.2522 (UTC)
X-Original-To: cpan-bug+Perl-Dist-Strawberry [...] hipster.bestpractical.com
X-RT-Mail-Extension: perl-dist-strawberry
X-Forefront-PRVS: 073515755F
Thread-Topic: First https request is very slow when perl process memory usage is high
X-MS-Has-Attach:
X-Originating-Ip: [80.62.246.50]
Accept-Language: en-US
X-MS-Exchange-Transport-Crosstenantheadersstamped: CY1PR0501MB1516
From: Jesper Jørgen Persson <jjp [...] siteimprove.com>
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: iso-8859-1
Content-Length: 1311
Download (untitled) / with headers
text/plain 1.2k
In a perl script with a small memory usage the first https request takes 2 seconds: ----------------------------------------------- use LWP::Simple qw($ua get); my $t = time; my $contents = get("https://www.google.com"); my $seconds_used = time-$t; print "seconds_used: $seconds_used\n"; ----------------------------------------------- In this perl script the process uses 440 MB memory when the https request is done and the first https request takes 55 seconds: ----------------------------------------------- use LWP::Simple qw($ua get); my %large_hash = (); my $string = 'a'x150; foreach my $cnt(1..800000){ $large_hash{$string.$cnt} = $string.$cnt; } my $t = time; my $contents = get("https://www.google.com"); my $seconds_used = time-$t; print "seconds_used: $seconds_used\n"; ----------------------------------------------- Following https requests are not slow. OS Name: Microsoft Windows 8.1 Pro OS Version: 6.3.9600 N/A Build 9600 System Type: x64-based PC Summary of my perl5 (revision 5 version 22 subversion 0) configuration: Platform: osname=MSWin32, osvers=6.3, archname=MSWin32-x64-multi-thread uname='Win32 strawberry-perl 5.22.0.1 #1 Mon Jun 1 23:58:39 2015 x64' Hope you can help resolve this problem. Best regards Jesper Persson
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: iso-8859-1
Content-Length: 6559


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.