Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 40CA2185FD for ; Fri, 18 Mar 2016 19:02:34 +0000 (UTC) Received: (qmail 15506 invoked by uid 500); 18 Mar 2016 19:02:33 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 15484 invoked by uid 500); 18 Mar 2016 19:02:33 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 15469 invoked by uid 99); 18 Mar 2016 19:02:33 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2016 19:02:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 811FF1A1145 for ; Fri, 18 Mar 2016 19:02:32 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.997 X-Spam-Level: * X-Spam-Status: No, score=1.997 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=te360.onmicrosoft.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ceEYKKEfU5yz for ; Fri, 18 Mar 2016 19:02:27 +0000 (UTC) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0143.outbound.protection.outlook.com [157.56.111.143]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id E75A95FB08 for ; Fri, 18 Mar 2016 19:02:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=TE360.onmicrosoft.com; s=selector1-te-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=UBNFOPT460vhoivfqOd9XL0J3c/cen+7limK0O4Yl/Y=; b=l0PK2iWXElddCnZqFvNFWhu2uvau1sM7weNlwhnyImzDojlH++Ee3baBx2GvDmHIjw++jDdQayoSLhNC1/fPxOvfGoSIT3ocxfFv5AOi3l1RGd7AzkTOWJMAlTY9FCB5klOQ0YV2HGlsBzjseDFzsREQzW1Sjp+R+fqedGgXB/8= Received: from BL2PR01CA0019.prod.exchangelabs.com (10.141.66.19) by BN1PR01MB277.prod.exchangelabs.com (10.242.213.151) with Microsoft SMTP Server (TLS) id 15.1.434.11; Fri, 18 Mar 2016 19:02:26 +0000 Received: from BN1AFFO11FD013.protection.gbl (2a01:111:f400:7c10::114) by BL2PR01CA0019.outlook.office365.com (2a01:111:e400:c1b::19) with Microsoft SMTP Server (TLS) id 15.1.447.10 via Frontend Transport; Fri, 18 Mar 2016 19:02:25 +0000 Authentication-Results: spf=pass (sender IP is 192.46.174.180) smtp.mailfrom=te.com; pdfbox.apache.org; dkim=none (message not signed) header.d=none;pdfbox.apache.org; dmarc=pass action=none header.from=te.com; Received-SPF: Pass (protection.outlook.com: domain of te.com designates 192.46.174.180 as permitted sender) receiver=protection.outlook.com; client-ip=192.46.174.180; helo=outlook.te.com; Received: from outlook.te.com (192.46.174.180) by BN1AFFO11FD013.mail.protection.outlook.com (10.58.52.73) with Microsoft SMTP Server (TLS) id 15.1.443.6 via Frontend Transport; Fri, 18 Mar 2016 19:02:24 +0000 Received: from us194mx110.tycoelectronics.net (135.107.8.136) by outlook.te.com (192.46.174.180) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 18 Mar 2016 15:01:55 -0400 Received: from US194MX113.tycoelectronics.net (135.107.8.139) by us194mx110.tycoelectronics.net (135.107.8.136) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Fri, 18 Mar 2016 15:01:56 -0400 Received: from US194MX113.tycoelectronics.net ([fe80::b527:76a6:3c18:8994]) by US194MX113.tycoelectronics.net ([fe80::b527:76a6:3c18:8994%14]) with mapi id 15.00.1104.000; Fri, 18 Mar 2016 15:01:56 -0400 From: "Stahle, Patrick" To: "users@pdfbox.apache.org" Subject: Strange performance problem with certain PDF files Thread-Topic: Strange performance problem with certain PDF files Thread-Index: AdGBRFLfZlJD/8JdTwGDoYg8bg+wqA== Date: Fri, 18 Mar 2016 19:01:56 +0000 Message-ID: <1d02344d4efe4b64bbc77ce87b067239@US194MX113.tycoelectronics.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [163.241.77.154] Content-Type: multipart/alternative; boundary="_000_1d02344d4efe4b64bbc77ce87b067239US194MX113tycoelectroni_" MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.46.174.180;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(438002)(189002)(164054003)(199003)(53754006)(110136002)(107886002)(189998001)(19580395003)(84326002)(2906002)(66066001)(5003600100002)(24736003)(81166005)(92566002)(54356999)(50986999)(106466001)(5004730100002)(229853001)(2351001)(6806005)(11100500001)(33646002)(2900100001)(16236675004)(260700001)(15975445007)(2501003)(86362001)(5008740100001)(3846002)(53416004)(19300405004)(5250100002)(586003)(6116002)(102836003)(790700001)(1096002)(108616004)(450100001)(87936001)(512954002)(19625215002)(1220700001);DIR:OUT;SFP:1102;SCL:1;SRVR:BN1PR01MB277;H:outlook.te.com;FPR:;SPF:Pass;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD013;1:m3XVrmfzs1JHBQ3Jc/wI5ZgJdsosRsxYPgMdXBooqjPad4ki3UWmnSY7apADFf/tW0nEpl5WRICzlNH93WRdsIYbcez73XhLsYjwtX2lnxEd7S8j4q9yhScA0v9TjDFIKrt9DWpTDh4bwUKa2iWKObktafwmWB/1cljIEPvayr/90hzdPwmOK6STsANHzmd6kFNLWBYcZNQHPvSoSquc0jdzDIzM3W+GnckF/sYOGHaTbu6jXbI9u7c5UHqre2PzKGvTb5LCNGZJAgkc72W65ccqVg1ZAxmQlo9fhgWKkOCFsA+wKDh26pCqxqiHUueAZDK+VTmyhOA5XtYlJkMpUNmsfLSABNsxwolewmhNH+VpZ75cAjAaNW77k1n83NvRqbbvNPdurSbas0Wf2rdUN52SKN/DI38PCKR5Qe99WZw= X-MS-Office365-Filtering-Correlation-Id: ce198052-2b0f-4e00-5350-08d34f5fd7ed X-Microsoft-Exchange-Diagnostics: 1;BN1PR01MB277;2:S46sz6xxkh8duW3RS9H0eRCioMz0qY24oL2DfPkCC0pDG2bbqK0eRW/F1BpSlOIgPTk+MRccEj5Mq6i0CbFgsOV8pJgd581ZJxMTJrE4RNRqSCdGnCzEiibfPAdHWYNBW94ysF5KpcHD4m0PEPVYqBvbimYNi5SPCAhrivHpIak+Zr1F/hpff1f7Z8UY1AXE;3:UvIMmMaLQgLveYg+eOKKDtAT+0H20AJx9grM6Y+dm6gJSL5c6k7SX8q4QaXUkokSauvKyEHaHuUl1ZHMOgn0gLaTSs61vP4zKxOWMuTZLqNzWEh4PGpXeaFxGU5Yz+Tls02oVLVWIpw+/zq8bnKi8l/P7iHfILlfkPjXD0yJgPlBEHNjfo+k6Es42a5eQZX8i+f2DXWpMOk7oCsdfgbXuupVYaac+cpNtTq9Un9NWQRODIlhAUCZP5jJHOa+Bdf4ddfVwnPt8OMKxt3Yj3VKrg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(8251501002);SRVR:BN1PR01MB277; X-Microsoft-Exchange-Diagnostics: 1;BN1PR01MB277;25:1687/pAWXBI0Rdam2yXgrwgKaf99eFGCAFpdrv8mA66OqQn108F8Ty12TrByI9pvWDamQQPQitOwI3M1SgFF1KZGKbJMGEB5E112Ha/iYqX20LcjJVsCzZt60o2hbyF7wFXTD7FVbRp9O85bFcdL/yyMFC1kfWZLpmjeWnYfP1qQe5fZxOt2mTJMBzy5X7+DDz7sMM3xY2dKtm6dbmcKoVDTgnUfGuf9Qyc35N8NrGckDtFNtDiUN3SV2sMUTmz62lmnUqXXz4nr2nEMxMZldEJ8AcR28bqNkq4LUTIJq6uwUzmJHzw/+SzbW2iF4cKX2T8DbIvNQ/SDzRIYKK5H3bEXtOLLuImW0VUYRYRU8OEj1SwwdmTO+2R8xybh15tJza9yMF9gzoapikjZMWm5mQ8IJoA/EObQtenyE7j8Nn5yK/wOvMb7SOljZOBy2kYYKddA5t8FCDmwUm5GoGVx3fc16nybpMPj0qQv+UW2UZp/UQClkeDv75ZKrmNUj+6skcgHcRRlZUtFnaily09Uazj8Hh/Pcx1dBXQJbcFrONMoMJKmY+7cP5QiRT79bluZOGqjbkgLJJn/XpkeihzN5yoJIhwQI0DQ0erynRcaQHKRt07Iwix3visSrgq7JRh5 X-Microsoft-Exchange-Diagnostics: 1;BN1PR01MB277;20:SeDRvZOI3kRwtN60TTbxQBB32n1sccbRxojUY//0bG6x1TZJRcrvrRoZQDEZXE9lubqk1/Jbpl68YDTFgx7B6EE6K5ll7jXG4omSvzJ5FSNaf5QtHqVg4fhvAHZUz0eKmhuo59sthKJzfZOliK3uqZiNUZU9jEqOeImPlYL2D7DR4BF5evHG1t2eZf1fNki6B/q3yE4D5XxUyEQjaIMyxZQVUsSXJfJ7lqUDRzsv8fhIF/x44BCdRZujPuX8knIr104iWh+uXATYB3/z5zad3bWpd/4nEth0tCnyxDTnPYpROOS9iY4jDOTdOTGvJvlv1mLvIrJAS4VdCe9RLf4InVP9qjrsc73EszY9RvsYBJ1hqzZ6x2smMeMc3MROD0W6JdIZsbqBrEQnXIlupxuovzKWY8ethHpNMatj4iJG1avOdMsUXKeC3PcX0ZAfJZxKtcHqjmeE99tswFCMfQgMDMvmpaeBHKuSD1W9j1KhlWCM32TVQOPxX671uxg5GQ5L;4:sMFkC+RaVxyG2QtX+p8lzwyO9Y97vlBV1iVU8eM0fhAPPKB8VyN8IM//l5yKSnsCx9q9BYZOQi934rbNrH0BpcRB5QG/ZZgpj4pFTmMMm3rLfLpnYe3eKADXf14u4ejKrtDCi9Sa2HOZKGxqCTlZAkitVSgxTlTF/BbdzYcV49frjH5U70R/vYKlMJnJhyUITurCsJCBb7Y/1+TUgs+mYq/k1p8tc6OQtg0cUF4bwshQXhSUteDW4dr9i5nmRmiLC2eTd5nUtvydfdOAoiUFw9Q8LfmUuvtaCDcXz3gSkASpmjzxvosaPNLSRHgXdHY07MxX6CGQDdnn5rf8K9kS7osPMD8PkdCh7QVZ9olKI6kEnx0HblK53eP6t2qcbn+6IXW+d03hH3fhjfPRZmJYFxH5N3V1VKkLgV3x+c3ZJ1Y= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(2401047)(5005006)(13023025)(13024025)(13016025)(13018025)(8121501046)(3002001)(10201501046);SRVR:BN1PR01MB277;BCL:0;PCL:0;RULEID:;SRVR:BN1PR01MB277; X-Forefront-PRVS: 088552DE73 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN1PR01MB277;23:1ViQ2Q0higfQd+CZ9Fhptca8Lrhq3E+ZG7feq3DeXd?= =?us-ascii?Q?cNktavL/wuTGwOg6WT3T3r52FBPMN6SCKkT+TpT6vMxGBA3rFK5XnMhRnvZe?= =?us-ascii?Q?vh6OZzXVkt+tU2u5wmv1cC5i7tqAkJH6WSERXQWnM58d49u8xKUBwT+Gm+GV?= =?us-ascii?Q?BLS0dM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h5w?= =?us-ascii?Q?NtiwaFym5+VKHs5dfo/FF+FJtgEHin7Juw5+LN9hSxqYQxTd2i9aUhuTWnEY?= =?us-ascii?Q?A3wTAaUZiRu0JXl05jguIJ5bUznTPyN2iig1WohzmNGazw8g4Em7+4Hp9mXA?= =?us-ascii?Q?pE5yDLwv61ey5PWISrhBE0/C8nfyfl877z4e8cEn3d2n+fzTalPRms6ufNvz?= =?us-ascii?Q?ScWHlRHdIPV3ht9XB60xc6qI3sWoi8TZZmKY1L?= X-Microsoft-Exchange-Diagnostics: 1;BN1PR01MB277;5:17G9UJFcS5id+Q4hxxCkrwJOVUIHd90A4GDPKQgj4vP4V+cwQd03spiOYSbmLOhuXvZ7SHSHLA5UTnqmTroQOdN/w/mxDlETLfcrYAdZH82vnmWB+beS0uMzz5tyJqKXU0svMbUb9+Xo9Gl7rvUPrw==;24:Npa+IKvGyXS7h6uUSMruo9epFZQFYszteQKeiEU+eHARI2jA5F6WPEjxJDHQW313lkRnpz+NNI4lbWo8QicVpKCiz7Kkk8eKlcUTRvvqqPg= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: te.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2016 19:02:24.8614 (UTC) X-MS-Exchange-CrossTenant-Id: 9c0e74bf-63ad-4d83-802c-30dfa888859a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=9c0e74bf-63ad-4d83-802c-30dfa888859a;Ip=[192.46.174.180];Helo=[outlook.te.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR01MB277 --_000_1d02344d4efe4b64bbc77ce87b067239US194MX113tycoelectroni_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, I am running into a lot of strange performance issues with certain PDF file= s. Background info: The strange thing I can't reproduce this consistently. When I get a pdf bei= ng generated on a particular environment it seems consistent. I do most of = my development inside VirtualBox virtual machine running fedora. These pdf = files I am having problems with never have performance issues when run on m= y virtual machine local drive, but if I use a Virtual Box Shared drive as t= he source / destination for the PDF, I see the problem. Another co-worker w= orking from pure windows environment experience the performance problem. We= are also seeing the same issue on our dev solaris servers. The performance= range can be quite drastic on one of our 3DPDF's (12meg) running on my loc= al environment it can be opened, stamped with some text, encrypted, and sav= ed in around 8 sec. Doing the same job pointing to a virtual box share driv= e or on our solaris server that same work will take minutes. On my coworker= s windows environment it takes around 30 seconds. We really only reproduced= this consistently on the 12m 3D PDF. I have a much smaller pdf (non 3d / = convert from msoffice) that does show similar performance issue but the tim= es range from 200ms local to 8 sec. The one thing I see in common between the 2 files is I see a lot of the fol= lowing messages to the console: Using output from the 12m 3DPDF file: : : 1787 [main] DEBUG org.apache.pdfbox.pdfparser.PDFObjectStreamParser - pars= ed=3DCOSObject{13166, 0} These messages seem to happen on the PDDocument.open and from what I can te= ll, I get 13,166 of these messages in this example PDF. The slowness does not happen until the following line: document.save(outputPDFStream); Other PDF's including some quite large I do not see this performance issue = nor those log messages. I know this is not much to go on, I am working on seeing if I can isolate t= his down to something more concrete / reproducible point. But I thought I w= ould send this out to see if anyone has any ideas or have seen issues simil= ar to this? Suggestions? Thanks, Patrick --_000_1d02344d4efe4b64bbc77ce87b067239US194MX113tycoelectroni_--