{"action":"created","issue":{"url":"https://api.github.com/repos/diegomura/react-pdf/issues/375","repository_url":"https://api.github.com/repos/diegomura/react-pdf","labels_url":"https://api.github.com/repos/diegomura/react-pdf/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/diegomura/react-pdf/issues/375/comments","events_url":"https://api.github.com/repos/diegomura/react-pdf/issues/375/events","html_url":"https://github.com/diegomura/react-pdf/issues/375","id":379469584,"node_id":"MDU6SXNzdWUzNzk0Njk1ODQ=","number":375,"title":"Generating PDF takes +30 minutes on production server, but 15 seconds on local dev","user":{"login":"ishraqiyun77","id":33135849,"node_id":"MDQ6VXNlcjMzMTM1ODQ5","avatar_url":"https://avatars2.githubusercontent.com/u/33135849?v=4","gravatar_id":"","url":"https://api.github.com/users/ishraqiyun77","html_url":"https://github.com/ishraqiyun77","followers_url":"https://api.github.com/users/ishraqiyun77/followers","following_url":"https://api.github.com/users/ishraqiyun77/following{/other_user}","gists_url":"https://api.github.com/users/ishraqiyun77/gists{/gist_id}","starred_url":"https://api.github.com/users/ishraqiyun77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishraqiyun77/subscriptions","organizations_url":"https://api.github.com/users/ishraqiyun77/orgs","repos_url":"https://api.github.com/users/ishraqiyun77/repos","events_url":"https://api.github.com/users/ishraqiyun77/events{/privacy}","received_events_url":"https://api.github.com/users/ishraqiyun77/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-10T22:50:19Z","updated_at":"2018-11-11T18:15:05Z","closed_at":null,"author_association":"NONE","body":"**OS:**\r\nDev: Windows 10 using WSL (Ubuntu 18.04)\r\nProduction: CentOS 7\r\n\r\nUsing latest Chrome.\r\n\r\nEdge, downloads within about 30 seconds.\r\n\r\nCan't test on IE and Firefox due to this issue:\r\n\r\nhttps://github.com/diegomura/react-pdf/issues/339\r\n\r\n**React-pdf version:**\r\n`alpha.18`\r\n\r\n**Description:**\r\nTesting the app on the production server. There is one report that I print that is about 8 pages covered in tables with borders, and even rows with gray background. Doesn't seem too intense.\r\n\r\nOn my local dev machine. it takes about 15 seconds to generate the report. \r\n\r\nOn the production server, it takes well over 30 minutes to generate the same minutes. Any suggestion on what could be causing this and how to resolve it?"},"comment":{"url":"https://api.github.com/repos/diegomura/react-pdf/issues/comments/437691947","html_url":"https://github.com/diegomura/react-pdf/issues/375#issuecomment-437691947","issue_url":"https://api.github.com/repos/diegomura/react-pdf/issues/375","id":437691947,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzY5MTk0Nw==","user":{"login":"diegomura","id":5600341,"node_id":"MDQ6VXNlcjU2MDAzNDE=","avatar_url":"https://avatars1.githubusercontent.com/u/5600341?v=4","gravatar_id":"","url":"https://api.github.com/users/diegomura","html_url":"https://github.com/diegomura","followers_url":"https://api.github.com/users/diegomura/followers","following_url":"https://api.github.com/users/diegomura/following{/other_user}","gists_url":"https://api.github.com/users/diegomura/gists{/gist_id}","starred_url":"https://api.github.com/users/diegomura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegomura/subscriptions","organizations_url":"https://api.github.com/users/diegomura/orgs","repos_url":"https://api.github.com/users/diegomura/repos","events_url":"https://api.github.com/users/diegomura/events{/privacy}","received_events_url":"https://api.github.com/users/diegomura/received_events","type":"User","site_admin":false},"created_at":"2018-11-11T18:15:05Z","updated_at":"2018-11-11T18:15:05Z","author_association":"OWNER","body":"Im totally blind on this one. With that little info I cannot say why is this happening. And probably neither replicate it on my side. I recommend you to debug react-pdf in production (if you can) to see where on the whole rendering process is this happening. \r\nA good starting point would be [here](https://github.com/diegomura/react-pdf/blob/master/src/elements/Document.js#L163). Each line of the `Document` render method triggers a specific rendering phase. You can check which one is taking so long, and then dig inside that one until you reach the cause of the problem"}}
{"actor":{"display_login":"diegomura"}}