Hi,
so that means, that it is not possible to provide download for files bigger than 2 GB? Or is this just for the bulitin datastore?
Regards
Andreas
Am 25.02.2021 um 01:36 schrieb Ian Allen:
Viktor,
Geonetwork uses byte arrays to store the data before streaming it to the user.
https://github.com/geonetwork/core-geonetwork/blob/182575ffe37282b18e1911f1a80011e8cfb451df/services/src/main/java/org/fao/geonet/api/records/attachments/AttachmentsApi.java#L261
So I believe the limit should be around 2GB
________________________________
From: Viktor Stroh <stroh@anonymised.com>
Sent: February 24, 2021 11:26 AM
To: geonetwork-users@lists.sourceforge.net <geonetwork-users@anonymised.comforge.net>
Subject: [GeoNetwork-users] Download large files
Hi guys,
we are currently trying to solve the problems with uploading and
downloading large data.
Upload size could be set upwards: either as suggested in earlier
versions in the source code under services in the
config-spring-geonetwork.xml file
or with new parameter api.params.maxUploadSize in config.properties in
the newer versions.
Now we have the problem to download larger files via geonetwork. When
clicking on a link to a 7.3 GB file under Download and links, an error
message comes up immediately:
<code>runtime_exception</code>.
<description>
Handler dispatch failed; nested exception is java.lang.OutOfMemoryError:
Required array size too large
</description>
<message>NestedServletException</message>.
The memory parameters are currently:
CATALINA_OPTS="-Xms5g -Xmx12g -XX:MaxDirectMemorySize=8g
-Dgeonetwork.dir=/var/lib/gn_data"
Tomcat8 can only be reached locally and uses NGinx Proxy for external
communication via HTTPS protocol. The server.xml looks like this:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
address="127.0.0.1"
redirectPort="443" />
the nginx configuration for the domain contains the section:
location / {
proxy_pass http://127.0.0.1:8080;
...
}
Do we have a configuration error? Is all data routed through Tomcat8 and
cannot be sent through an external web server?
We want a portal that provides the metadata as well as the actual data
and takes care of user rights, and we find the geonetwork software good
in this regard.
best regards
Viktor
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
--
--------------------------------------------------------------------------------------------
Andreas Böhme
Techniker/Technician
Landschaftsökologie/Computational Landscape Ecology
Helmholtz-Zentrum für Umweltforschung GmbH - UFZ
Helmholtz Centre for Environmental Research GmbH - UFZ
Permoserstraße 15, 04318 Leipzig, Germany
Phone +49 341 235 1058
andreas.boehme@anonymised.com, www.ufz.de
Sitz der Gesellschaft/Registered Office: Leipzig
Registergericht/Registration Office: Amtsgericht Leipzig
Handelsregister Nr./Trade Register Nr.: B 4703
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: N.N.
Wissenschaftlicher Geschäftsführer/Scientific Managing Director:
Prof. Dr. Georg Teutsch
Administrative Geschäftsführerin/Administrative Managing Director:
Dr. Sabine König
Vermeiden Sie unnötige Ausdrucke./Think before printing.
Informationen aus der Wissenschaft (z.B. Veranstaltungshinweise, Projektangaben, Publikationen,
Bücher)
--------------------------------------------------------------------------------------------