Skip to content

Performance issue: 502 errors on rendering of issues with heavy markdown contents

If markdown contents being used in an Issue has a lot of formatting, and size is significant, rendering might fail.

Examples, 400 kiB markdown:

Maybe some limit must be enforced at DB level? Or there is something that might be optimized here? I did some quick checks from the database side, and the problem doesn't look to be related to the DB performance.

Per @smcgivern, it might be related to this code: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/app/helpers/page_layout_helper.rb#L35

Edited by Nikolay Samokhvalov