Code Monkey home page Code Monkey logo

Comments (9)

gitblit avatar gitblit commented on July 30, 2024
You like the hard ones.  :)  I'll see if I can reproduce it.

Reported by James.Moger on 2011-09-09 13:19:28

from gitblit.

gitblit avatar gitblit commented on July 30, 2024
Yes :-) The good point here is that our installation is probably used by more than 70
people, so a good benchmark for gitblit :-)

Again not a real show stopper, the problem occurs after 1 week or so, and we can workaround
the issue by restarting gitblit GO. Maybe it's an issue with the GO edition and the
WAR edition is unaffected, but unluckily at present I have no time to switch to the
WAR edition.


Reported by gm.romanato on 2011-09-12 15:56:48

from gitblit.

gitblit avatar gitblit commented on July 30, 2024
Problem occurred again: gitblit stopped serving CSS and images yesterday, and we restarted
it.

Reported by gm.romanato on 2011-09-21 08:04:26

from gitblit.

gitblit avatar gitblit commented on July 30, 2024
What are your launch parameters for Java?  Are you using the server or hotspot vm? 
Is this Oracle Java or OpenJDK?

Reported by James.Moger on 2011-09-21 11:54:26

from gitblit.

gitblit avatar gitblit commented on July 30, 2024
Sorry, I did not notice comment 4. In any case, we recently moved to the WAR distribution
and the problem is still present, so it is not limited to the GO edition.

We are using Jetty 7.5.1 to run WAR 0.60. Jetty is started using its own shell script
(which imposes -server switch). The JVM is Oracle's 1.6.24 64Bit on a Centos 5.5 x64

I now asked to restart the server in debug mode. I plan to remote debug the server
the next time the issue will show up. 

Reported by gm.romanato on 2011-11-07 10:00:22

from gitblit.

gitblit avatar gitblit commented on July 30, 2024
Gitblit relies on its servlet container and Wicket for resource management.  In reviewing
the resource cache policy I see that I left the resource duration at its default (120
mins) which is too short for these static files.

I will adjust that for the next release and performance, all-around, should improve
- if only slightly.  That may or may not change anything related to your problem. 
It's a strange one.  When you manage to get Gitblit back into this state of not sending
resource files, can you try fetching an image or css file with wget or curl?  I'd be
interested to know if it fails that way too.

Reported by James.Moger on 2011-11-07 13:54:29

from gitblit.

gitblit avatar gitblit commented on July 30, 2024
Are you still experiencing this issue?  I have never experienced it myself.

Reported by James.Moger on 2012-01-11 21:47:49

from gitblit.

gitblit avatar gitblit commented on July 30, 2024
Problem solved! Apparently our Linux installation automatically performs a scheduled
clean-up of the /tmp folder and deletes any resource that is both very old and has
not been modified for a long time. 

Now, it turns out that gitblit-go extracts the images and the CSS in a subfolder of
/tmp. The same happens with gitblit.war deployed in Jetty, unless you tell Jetty to
use a custom temporary folder. Those resources remained unchanged and after the initial
WAR deploy and after some time were subject to the clean up process described above.
Restarting gitblit-go or Jetty solved the issue because in both cases the resources
were extracted again.

Don't know whether this is standard behaviour for Centos 5.5 or just a configuration
of our installation, but at least we finally spotted the issue.

Thanks for your help.

Reported by gm.romanato on 2012-01-13 12:10:32

from gitblit.

gitblit avatar gitblit commented on July 30, 2024
Ah...  I can't control what the servlet container does with a WAR file, but GO has a
setting to specify the temp folder (server.tempFolder) to which the resources are extracted.

Maybe I'll add that as a FAQ entry.

Reported by James.Moger on 2012-01-13 12:52:45

  • Status changed: WontFix
  • Labels added: Milestone-0.5.2

from gitblit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.