IBM E02HRLL-G Administration Guide - Page 165

Avoiding long processing time for large encrypted documents, Avoiding out-of-memory errors, Document

Page 165 highlights

2. Follow the steps in the ″"Avoiding out-of-memory errors" to increase memory size and speed up processing of encrypted documents. Avoiding long processing time for large encrypted documents Large files can be compressed before sending. Large file support with an order of size in GBs has been extended for AS2 and AS3. In version 6.2, the maximum file size processed using byte arrays is configurable. When the amount of memory allocated is more than the available heap size, OutOfMemoryError occurs. If the size of data is less than the available memory, OutOfMemoryError may still occur if the memory allocated increases available memory. You can specify the maximum file size that can be used with byte arrays using the property bcg.maximumFileSizeForByteArrays. If the file size is more than the value of this property, it is processed using streams. If the file size is less than the value of this property, and if sufficient memory is not available, an error event BCG210050 is generated. When you log in as a hub operator, navigate to System Administration tab > Common Attributes tab. Overwrite the default value of bcg.maximumFileSizeForByteArrays property to specify the maximum file size to be used with byte arrays. Increase the value of this property for better performance. To avoid out of memory errors, the value of property bcg.maximumFileSizeForByteArrays must be set such that very large files are processed using streams rather than as byte arrays. For example, if RAM size is 512 MB, then the value of bcg.maximumFileSizeForByteArrays property can be set to 20 MB. All documents of size greater than 20 MB will be processed using streams and not using byte arrays. Documents of size less than 20 MB will be processed in memory. Avoiding out-of-memory errors Areas that can contribute to the out of memory conditions are: v Document Manager memory configuration This configuration specifies the amount of memory the underlying Java application has allocated to work with. v Document Manager workload You can configure the number of threads subcomponents can use. If the configured thread number is high and there is a heavy work load then more memory is required to handle all of the documents. v Document structure of the documents that are being processed Depending on the document structure more memory can be required to process a document, especially for large documents. Areas affected are security (encryption, decryption, signing, signature verification) and XML Transformation and Validation processing steps (especially those documents with large text values). For more information on OutOfMemoryError due to large file size, see "Avoiding long processing time for large encrypted documents." Document Manager memory configuration About this task To improve performance and avoid out of memory errors, you can increase the size of the initial and maximum heap sizes for the Websphere Partner Gateway components. From the Websphere Application Server admin console: 1. Navigate to Application Servers. Chapter 17. Troubleshooting 159

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264
  • 265
  • 266
  • 267
  • 268

2.
Follow the steps in the
“Avoiding out-of-memory errors” to increase memory
size and speed up processing of encrypted documents.
Avoiding long processing time for large encrypted documents
Large files can be compressed before sending. Large file support with an order of
size in GBs has been extended for AS2 and AS3. In version 6.2, the maximum file
size processed using byte arrays is configurable. When the amount of memory
allocated is more than the available heap size, OutOfMemoryError occurs. If the
size of data is less than the available memory, OutOfMemoryError may still occur
if the memory allocated increases available memory. You can specify the maximum
file size that can be used with byte arrays using the property
bcg.maximumFileSizeForByteArrays
. If the file size is more than the value of this
property, it is processed using streams. If the file size is less than the value of this
property, and if sufficient memory is not available, an error event BCG210050 is
generated. When you log in as a hub operator, navigate to
System Administration
tab >
Common Attributes
tab. Overwrite the default value of
bcg.maximumFileSizeForByteArrays
property to specify the maximum file size to
be used with byte arrays. Increase the value of this property for better
performance. To avoid out of memory errors, the value of property
bcg.maximumFileSizeForByteArrays
must be set such that very large files are
processed using streams rather than as byte arrays. For example, if RAM size is
512 MB, then the value of
bcg.maximumFileSizeForByteArrays
property can be set
to 20 MB. All documents of size greater than 20 MB will be processed using
streams and not using byte arrays. Documents of size less than 20 MB will be
processed in memory.
Avoiding out-of-memory errors
Areas that can contribute to the out of memory conditions are:
v
Document Manager memory configuration
This configuration specifies the amount of memory the underlying Java
application has allocated to work with.
v
Document Manager workload
You can configure the number of threads subcomponents can use. If the
configured thread number is high and there is a heavy work load then more
memory is required to handle all of the documents.
v
Document structure of the documents that are being processed
Depending on the document structure more memory can be required to process
a document, especially for large documents. Areas affected are security
(encryption, decryption, signing, signature verification) and XML Transformation
and Validation processing steps (especially those documents with large text
values).
For more information on OutOfMemoryError due to large file size, see “Avoiding
long processing time for large encrypted documents.”
Document Manager memory configuration
About this task
To improve performance and avoid out of memory errors, you can increase the
size of the initial and maximum heap sizes for the Websphere Partner Gateway
components. From the Websphere Application Server admin console:
1.
Navigate to Application Servers.
Chapter 17. Troubleshooting
159