Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.deb creation is really slow #135

Closed
hootsuitemike opened this issue Jan 23, 2014 · 6 comments
Closed

.deb creation is really slow #135

hootsuitemike opened this issue Jan 23, 2014 · 6 comments
Labels

Comments

@hootsuitemike
Copy link

.deb creation is really slow with a large static directory of included files. (~42M, ~780 files) jstack reports that all the time is spent waiting for DebianPlugin.chmod to do its thing:

"pool-7-thread-2" prio=5 tid=0x00007f900bcc7000 nid=0x6e0b runnable [0x000000026cdff000]
   java.lang.Thread.State: RUNNABLE
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
    at java.lang.ProcessImpl.start(ProcessImpl.java:130)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
    at sbt.SimpleProcessBuilder.run(ProcessImpl.scala:388)
    at sbt.AbstractProcessBuilder.run(ProcessImpl.scala:138)
    at sbt.AbstractProcessBuilder.$bang(ProcessImpl.scala:166)
    at com.typesafe.sbt.packager.debian.DebianPlugin$class.com$typesafe$sbt$packager$debian$DebianPlugin$$chmod(DebianPlugin.scala:33)
    at com.typesafe.sbt.packager.debian.DebianPlugin$class.com$typesafe$sbt$packager$debian$DebianPlugin$$copyAndFixPerms(DebianPlugin.scala:28)
    at com.typesafe.sbt.packager.debian.DebianPlugin$$anonfun$debianSettings$12$$anonfun$apply$17$$anonfun$apply$21.apply(DebianPlugin.scala:112)
    at com.typesafe.sbt.packager.debian.DebianPlugin$$anonfun$debianSettings$12$$anonfun$apply$17$$anonfun$apply$21.apply(DebianPlugin.scala:109)

Forking a separate process to chmod each file is probably the root of the performance problem.

@jsuereth
Copy link
Member

Yeah. Ideally we wouldn't have to do this if we have Java7 as an option. Patches welcome to fix this.

@muuki88
Copy link
Contributor

muuki88 commented Jan 23, 2014

Are there plans for how long we should be backwards compatible with java6?

@jsuereth
Copy link
Member

not really....

@retronym
Copy link
Member

Could you chmod in batches?

On Thursday, January 23, 2014, Josh Suereth notifications@github.com
wrote:

not really....


Reply to this email directly or view it on GitHubhttps://github.com//issues/135#issuecomment-33156447
.

@jsuereth
Copy link
Member

That could definitely help. Again, patches welcome.

@muuki88
Copy link
Contributor

muuki88 commented Sep 23, 2014

A workaround is know to use jdeb packaging, which is a lot faster than native packaging.

packageBin in Debian <<= debianJDebPackaging in Debian

@muuki88 muuki88 closed this as completed Sep 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants